stripe-android icon indicating copy to clipboard operation
stripe-android copied to clipboard

[Feature] Update presentPaymentMethodSelection to handle `ActivityResultCallback`

Open YashaswiVemula opened this issue 3 years ago • 4 comments

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 avatar Nov 10 '21 21:11 YashaswiVemula

@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 avatar Nov 11 '21 11:11 michelleb-stripe

@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 avatar Nov 11 '21 14:11 YashaswiVemula

@YashaswiVemula We don't have anything that supports this yet, but we have it in our backlog. We will post updates here.

michelleb-stripe avatar Nov 11 '21 15:11 michelleb-stripe

@michelleb-stripe - is there a ticket to track to see when/if this will be/is implemented?

dazza5000 avatar Mar 14 '22 19:03 dazza5000

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.

tillh-stripe avatar Mar 27 '23 17:03 tillh-stripe