#00babs00
1 messages · Page 1 of 1 (latest)
Hi there, is your app connected to a terminal reader already?
Yes and I can successfully capture the payment
What's the paymentintent ID?
I wasn't precise enough when I said that collectPaymentMethod returns nothing, in reality it returns {undefined, undefined}.
pm_1OUmhQEZQWghrrgG0ORy1Qya
A payment intent ID starts with pi_
pi_3OUmhCEZQWghrrgG1bJL8i7y
Ok, I can see that this payment is already captured successfully.
Why do you still call collectPaymentMethod on this payment method?
Yes because I called capturePayment
What's the exact code you're using to call collectPaymentMethod?
I will send you
const { pi, error } = await collectPaymentMethod({ paymentIntent: payment_intent });
And at what point do you call this function? After capture?
You can see the function signature here: https://stripe.dev/stripe-terminal-react-native/api-reference/interfaces/StripeTerminalSdkType.html#collectPaymentMethod
So what you have should work. Are there no other errors/logs thrown when you call that function? The Promise jsut resolves to undefined?
Documentation for @stripe/stripe-terminal-react-native