#Potato-PaymentSheet

1 messages · Page 1 of 1 (latest)

silent maple
#

Hi there, can you send me the payment intent ID?

sour yew
#

yeah, one sec!

#

pi_3KfbhwK9rWUqf6xm1LDYiOAA

#

@silent maple

silent maple
#

Got it, one sec

#

Ok, the PI status is requires_payment_method and the paymentsheet should accept this PI. What's the SDK version that you are using? Is this happening in both Android and iOS?

sour yew
#

I'm using version:
"@haughty tree/stripe-react-native": "^0.4.0",

#

and it's happening on my IOS device

#

Object {
"code": "Failed",
"declineCode": null,
"localizedMessage": null,
"message": null,
"stripeErrorCode": null,
"type": null,
}

silent maple
#

OK, did you manage to test it in Android?

sour yew
#

I can run a quick test, but the strange part is it only happens when I set the default payment method for the customer

#

if I remove that it works

silent maple
#

I see, so you have already set a invoice_setting.default_payment_method on the customer?

sour yew
#

yeah, exactly

silent maple
#

I see, in that case you don't need to present the payment sheet.

#

Stripe will use this payment method as the default payment method for the subscriptions on this customer

sour yew
#

how do I create the subscription then, since when I create the subscription it sits in the incomplete state

silent maple
#

If you have already collected the payment details, you can create the subscription with payment_behaviour=allow_incomplete, in this way Stripe will immediately attempt to pay the invoice and set the subscription status to active upon successful payment.

sour yew
#

oh, let me give that a quick try

#

perfect, that was the solution! Thank you 🙂

silent maple
#

Cool! I'm happy to hear it works.