-
Notifications
You must be signed in to change notification settings - Fork 650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Add PaymentMethod object on PaymentOptionCallback #8071
Comments
Hi @Hospes we recently added something similar on iOS: stripe/stripe-ios#3165 Would adding the payment method type, and the billing details solve your use case? (We don't actually create the PaymentMethod until |
@jaynewstrom-stripe my case - yes, if you add |
@Hospes what if we add I asked because we're also planning some upcoming features where we can't expose |
@jaynewstrom-stripe Yes, it's fine by me. The main idea is to have constant that will explain selected type 👍 |
Any news on this issue ? @jaynewstrom-stripe |
Hi @Hospes, it's still on our backlog, no word on when we will pick it up yet. |
Any news on this issue ? @jaynewstrom-stripe |
Is your feature request related to a problem? Please describe.
I've implemented payment flow like described in this article paymentsheet-flowcontroller. Docs says that after using
flowController.presentPaymentOptions()
we will handle selectedPaymentOption
throughPaymentOptionCallback
to update our own UI if needed. In my case it's needed butPaymentOption
doesn't contain all needed information. It has onlylabel
andicon
but in my case I need to know what type ofPaymentMethod
was selected likepaypal
/klarna
/card
/etc...Describe the solution you'd like
Add more usefull information about selected payment to
PaymentOption
, mostly needed information are exists inPaymentMethod
class liketype
/id
.Describe alternatives you've considered
Would be perfect if we can receive and
PaymentOption
andPaymentMethod
at the same time, so we can update our UI according to selected type of paymentAdditional context
Currently to properly update our UI I have to
fake
start payment process and pass invalidclientSecret
onCreateIntentCallback
because I want to receivePaymentMethod
and then I'm updating our UI with adjusted prices and then I'm again doing reconfig ofFlowController
and then I'm waiting for user starts payment process. I would like to avoid anyfake
actionsThe text was updated successfully, but these errors were encountered: