#aditya_10116
1 messages · Page 1 of 1 (latest)
Hi there!
Can you clarify how you are using the PaymentSheet now? Why don't you automatically attach the payment method to the customer?
@near vortex you don't have to send your messages on the main channel when your thread is still open
please leverage this thread instead
I am using Payment sheet following the Android SDK docs on your website.
I am able to do the payment and receive Payment callbacks. But, cannot retrieve the Payment method out of the payment sheet.
are you following this guide https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements ?
No, I am working on an Android app.
I agree
but even though
you can follow this
the only thing that would change is this step https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#collect-payment
you would use instead this https://stripe.com/docs/payments/accept-a-payment?platform=ios&ui=payment-sheet#ios-collect-payment-details
either for IOS or Android
Yes that is perfect. I am following the exact flow. However, within that code I don't see any way to fetch the payment method out of the Paymentsheet.
you don't have to fetch anything
you have to pass in the PI secret to the PaymentSheet
and it will attach the payment method to the subscription
Do I have to call the Create subscription API at my backend after the successful payment or the subscription is automatically created?
you haven't read the docs that I shared with you
please go back and follow this guide https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
Sure, thanks!