MetaMask / MetaMask/metamask-mobile
[Bug]: Money account: Purchase failure - Remove error popup from RC builds
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 1.7k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 669
Description
### Describe the bug
When trying to purchase on Money Account via Transak with debit card, the order failed with the following error:
`Error: MetaMask Pay: Fiat: Fiat order failed`
### Expected behavior
Order to be successful and no error message
### Screenshots/Recordings
https://github.com/user-attachments/assets/552f96b9-e5ae-4f3c-97b6-230cd536da1b
### Steps to reproduce
1. Go to Money Account
2. Click Add
3. Select debit card
4. Enter amount
5. Click Add funds
6. Enter Card details
7. Click Confirm Order
8. Notice error
### Error messages or log output
```
Error: MetaMask Pay: Fiat: Fiat order failed
at construct (native)
at apply (native)
at _construct (address at /var/mobile/Containers/Data/Application/FCDDD656-22AA-4CE3-80C2-39EA18CB2EC2/Library/Application Support/.expo-internal/bundle-edeaeb1b-ea40-48a3-8560-11cbccea58ef.jsbundle:1:776222)
at Wrapper (address at /var/mobile/Containers/Data/Application/FCDDD656-22AA-4CE3-80C2-39EA18CB2EC2/Library/Application Support/.expo-internal/bundle-edeaeb1b-ea40-48a3-8560-11cbccea58ef.jsbundle:1:779983)
at call (native)
at JsonRpcError (address at /var/mobile/Containers/Data/Application/FCDDD656-22AA-4CE3-80C2-39EA18CB2EC2/Library/Application Support/.expo-internal/bundle-edeaeb1b-ea40-48a3-8560-11cbccea58ef.jsbundle:1:3141375)
at getJsonRpcError (address at /var/mobile/Containers/Data/Application/FCDDD656-22AA-4CE3-80C2-39EA18CB2EC2/Library/Application Support/.expo-internal/bundle-edeaeb1b-ea40-48a3-8560-11cbccea58ef.jsbundle:1:3146958)
at internal (address at /var/mobile/Containers/Data/Application/FCDDD656-22AA-4CE3-80C2-39EA18CB2EC2/Library/Application Support/.expo-internal/bundle-edeaeb1b-ea40-48a3-8560-11cbccea58ef.jsbundle:1:3147533)
at ?anon_0_ (address at /var/mobile/Containers/Data/Application/FCDDD656-22AA-4CE3-80C2-39EA18CB2EC2/Library/Application Support/.expo-internal/bundle-edeaeb1b-ea40-48a3-8560-11cbccea58ef.jsbundle:1:2995180)
at next (native)
at asyncGeneratorStep (address at /var/mobile/Containers/Data/Application/FCDDD656-22AA-4CE3-80C2-39EA18CB2EC2/Library/Application Support/.expo-internal/bundle-edeaeb1b-ea40-48a3-8560-11cbccea58ef.jsbundle:1:776710)
at _next (address at /var/mobile/Containers/Data/Application/FCDDD656-22AA-4CE3-80C2-39EA18CB2EC2/Library/Application Support/.expo-internal/bundle-edeaeb1b-ea40-48a3-8560-11cbccea58ef.jsbundle:1:776967)
at tryCallOne (address at InternalBytecode.js:1:1180)
at anonymous (address at InternalBytecode.js:1:1874)
```
### Where was this bug found?
Internal release testing
### Version
8.6.0
### Build number
6325
### Build type
None
### Device
iPhone 15
### Operating system
iOS
### Additional context
_No response_
### Severity
_No response_
Contributor guide
Research direction
Reproduce the Money Account purchase flow on the reported iPhone/iOS setup using the listed steps, then trace how the Transak fiat-order failure is handled in the mobile app. Confirm whether the intended result is a successful order or suppression of the error popup in RC builds, and verify that the final flow matches that expectation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile, payments
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100