#00babs00

1 messages · Page 1 of 1 (latest)

deft trenchBOT
worldly granite
#

Hi there, is your app connected to a terminal reader already?

uncut crescent
#

Yes and I can successfully capture the payment

worldly granite
#

What's the paymentintent ID?

uncut crescent
#

I wasn't precise enough when I said that collectPaymentMethod returns nothing, in reality it returns {undefined, undefined}.

uncut crescent
worldly granite
#

A payment intent ID starts with pi_

uncut crescent
#

pi_3OUmhCEZQWghrrgG1bJL8i7y

deft trenchBOT
worldly granite
#

Ok, I can see that this payment is already captured successfully.

#

Why do you still call collectPaymentMethod on this payment method?

uncut crescent
#

Yes because I called capturePayment

hot bluff
#

What's the exact code you're using to call collectPaymentMethod?

uncut crescent
#

I will send you

#

const { pi, error } = await collectPaymentMethod({ paymentIntent: payment_intent });

hot bluff
#

And at what point do you call this function? After capture?