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

Collect payment Failure #673

Open
ManiRelavant opened this issue Apr 22, 2024 · 1 comment
Open

Collect payment Failure #673

ManiRelavant opened this issue Apr 22, 2024 · 1 comment

Comments

@ManiRelavant
Copy link

ManiRelavant commented Apr 22, 2024

Describe the bug
When I tried to collect the payment from the stripe terminal using the tap to pay(Simulated mode: YES) React native app, I got an error.

While we working on the stripe reader m2 with simulated mode working fine, unfortunately, tap to pay not working as with the same code

To Reproduce

  1. creating the payment intent from the server
  2. Retrieve the payment intent from the front end (React native - Mobile app) using the client secret key. which key from the server
  3. Collect the payment from the front end, got an error.

//clientSecret from the back-end this.props.retrievePaymentIntent(clientSecret).then((e) => { console.log('retrievePaymentIntent', e.paymentIntent); this. props.collectPaymentMethod({ paymentIntent: e.paymentIntent, enableCustomerCancellation: true, }).then((e) => { //Confirm Payment intend}).catch(e => { console.log('collectPaymentMethodError:', e);})})

Error From the collect payment method function
{"error": {"code": "InvalidRequiredParameter", "message": "The PaymentIntent is missing sdkUuid field. This method requires you to use the PaymentIntent that was returned from either createPaymentIntent or retrievePaymentIntent."}, "paymentIntent": undefined}

Expected behavior
Should work with Tap to pay

Retrieving payment intent using retrievePaymentIntent function
{"amount": 1854, "charges": [], "created": "1713787394000", "currency": "usd", "id": "pi_3P8LaYFy8kPIscdv1snsj00B", "metadata": {"billing_amount_flat": "54", "billing_amount_variable": "1854"}, "offlineDetails": null, "paymentMethodId": null, "sdkUuid": "44E0E5C7-3033-4FC5-95F0-2EE49D92AA98", "status": "requires payment method"}

Stripe Terminal React Native SDK version

  • "@stripe/stripe-terminal-react-native": "^0.0.1-beta.17"

Smartphone (please complete the following information):

  • Device: [iPhone15]
  • OS: [iOS17.1]
@nazli-stripe
Copy link
Collaborator

hey @ManiRelavant are you still running into this issue on the latest version?

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

No branches or pull requests

2 participants