Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] collectPaymentMethod throws unexpected error and gets stuck from proceeding #697

Closed
asher5 opened this issue May 16, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@asher5
Copy link

asher5 commented May 16, 2024

Describe the bug
V0.0.1-beta.18 is crashing when collecting payment on an M2 card reader with the error below

[I] <MMKV.cpp:1179::sync> MMKV::sync, SyncFlag = 1
stripe_terminal_react_native/Mappers.swift:647: Fatal error: Unexpectedly found nil while unwrapping an Optional value

To Reproduce
Steps to reproduce the behavior:

  1. Call collectPaymentMethod with the following params {"paymentIntent":{"sdkUuid":"2CD3EF5A-231F-4DFC-8685-4E65F39EFAF8","status":"requiresPaymentMethod","created":"1715808917000","currency":"usd","captureMethod":"manual","paymentMethodId":null,"statementDescriptor":null,"statementDescriptorSuffix":"Asher S","paymentMethod":null,"amountTip":0,"id":"pi_3PGpTlBc6uwoDriN1iqTOhV0","metadata":{"transaction_uuid":"2f56eb0c-7f94-40ce-972f-4d061f4280da","chargeable_type":"Appointment","charge_guid":"2a116dfce6","chargeable_id":"10980610","client_id":"3633713","transaction_designation":"payment","organization":"Standard","user_email":"asher_test@glossgenius.com","transaction_payment_type":"payment_card_terminal","application_fee":"140","user_id":"55091"},"charges":[],"amount":5400,"amountDetails":{"tip":{"amount":null}},"offlineDetails":null},"updatePaymentIntent":true}
  2. Tap the card on the M2 card reader
  3. See error

Expected behavior
The collectPaymentMethod should return will result that is either a paymentIntent or error

Screenshots
If applicable, add screenshots to help explain your problem.

Stripe Terminal React Native SDK version
^0.0.1-beta.18

Smartphone (please complete the following information):

  • Device: iPhone 15 Pro
  • OS: 17.4.1

Additional context
Add any other context about the problem here.

@nazli-stripe nazli-stripe self-assigned this May 16, 2024
@nazli-stripe
Copy link
Collaborator

This seems to be a bug with how we are doing mapping for PaymentIntents, fixing in this PR: #698

@nazli-stripe nazli-stripe added the bug Something isn't working label May 21, 2024
@asher5
Copy link
Author

asher5 commented May 28, 2024

@nazli-stripe is there a timeline to release the fixes?

@nazli-stripe
Copy link
Collaborator

we are aiming for early June

@nazli-stripe
Copy link
Collaborator

hey @asher5 we just release beta.19. Can you upgrade and let us know if it fixes the issue? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants