Skip to content

task: expose responseCode to transactionFailed event#23

Merged
luca-gr4vy merged 2 commits intomainfrom
task/TA-10709-expose-responsecode-in-transactionfailed-event
Apr 3, 2025
Merged

task: expose responseCode to transactionFailed event#23
luca-gr4vy merged 2 commits intomainfrom
task/TA-10709-expose-responsecode-in-transactionfailed-event

Conversation

@luca-gr4vy
Copy link
Copy Markdown
Contributor

Description: Now that we handle request timeouts in embed-ui, we want to expose the responseCode to the transactionFailed event in the iOS SDK, so merchants can act on it if they want to.

Note: breaking change ❗ Merchants listening to these events will have to add responseCode as last argument in the .transactionFailed call (or ignore by passing _)

Ticket: https://gr4vy.atlassian.net/browse/TA-10709

Screenshots:

(first is a timeout, then a success, then a normal fail)

Screenshot 2025-04-01 at 10 01 20

new timeout error UI (as per https://github.com/gr4vy/embed-ui/pull/1237)

Screenshot 2025-04-01 at 09 58 20

@luca-gr4vy luca-gr4vy requested a review from cbetta April 2, 2025 09:59
@luca-gr4vy luca-gr4vy merged commit 6bd7b87 into main Apr 3, 2025
1 check passed
Paolo-Deliverit added a commit to JohnnyDevi/gr4vy-ios that referenced this pull request Jan 8, 2026
* commit '6bd7b871b1a6b244116111b85b983b2d07359b38':
  task: expose `responseCode` to `transactionFailed` event (gr4vy#23)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants