stripe-android
stripe-android copied to clipboard
[Feature] Update presentPaymentMethodSelection to handle `ActivityResultCallback`
When launching stripe UI with presentPaymentMethodSelection
we need implement onActivityResult
to receive updated to PaymentSessionListener
.
Since onActivityResult
is deprecated, do we have an update to handle ActivityResultCallback
to receive results in PaymentSessionListener
.
Stripe: 18.2.0.
@YashaswiVemula We do not have plans to update PaymentSession away from the onActivityResult. I recommend taking a look at our new pre-built UIs: https://stripe.com/docs/payments/accept-a-payment?platform=android.
@michelleb-stripe Thank you, but in our case we are integrating stripe UI to just collect or manage CC details and retrieving selected PaymentMethod to send it to server. Where server handles payment. Could you link me to that documentation where new stripe UI handles above case and any suggestions would be helpful.
@YashaswiVemula We don't have anything that supports this yet, but we have it in our backlog. We will post updates here.
@michelleb-stripe - is there a ticket to track to see when/if this will be/is implemented?
Hi @YashaswiVemula and @dazza5000 👋 Sorry that nothing has happened on this issue for a while.
We don’t have any plans to change PaymentSession
. As mentioned earlier, we recommend that you integrate with Stripe using PaymentSheet
(see the docs here).
Since server-side payment confirmation came up in this discussion, I can share that we’re actively working on making this possible in PaymentSheet
. If you’re interested in joining the beta, you can sign up here.