#aditya_10116

1 messages · Page 1 of 1 (latest)

tawdry jackalBOT
wide owl
#

Hi there!

#

Can you clarify how you are using the PaymentSheet now? Why don't you automatically attach the payment method to the customer?

stone osprey
#

@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.

near vortex
#

Thanks!

#

Yes, so my problem?

#

There?

stone osprey
near vortex
#

No, I am working on an Android app.

stone osprey
#

I agree

#

but even though

#

you can follow this

#

either for IOS or Android

near vortex
#

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.

stone osprey
#

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

near vortex
#

Do I have to call the Create subscription API at my backend after the successful payment or the subscription is automatically created?

stone osprey
#

you haven't read the docs that I shared with you

near vortex
#

Sure, thanks!