-
Notifications
You must be signed in to change notification settings - Fork 263
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
Retrieve PaymentMethod before calling confirmPaymentSheetPayment #1640
Comments
Hi @g-cappai The PaymentOption returned from presentPaymentSheet contains label and image that you can use to update your UI. Can you tell me what other information you need for your UI update? |
Hi @seanzhang-stripe, I need the PaymentMethod id. We use it to calculate fees and show the updated price to our customers after they fill the PaymentSheet. |
Hi @seanzhang-stripe, that would be helpful, but I need more data. Essentially, we use the |
Hi @seanzhang-stripe, any news? |
+1 Adding |
Is your feature request related to a problem? Please describe.
I'm currently using the Mobile Payment Element with
customFlow
andconfirmHandler
, following the documentation. However, I'm encountering difficulty retrieving thePaymentMethod
before callingconfirmPaymentSheetPayment
, which is necessary for updating the UI.Currently, I'm retrieving the PaymentMethod from confirmHandler's parameters. However, this requires delaying the call to
intentCreationCallback
until after the UI is updated and the user confirms to proceed.Describe the solution you'd like
I’d like to have a way to obtain the PaymentMethod object after the PaymentSheet is closed, potentially as part of
PresentPaymentSheetResult
. This would allow for acquiring the PaymentMethod before calling confirmPaymentSheetPayment, simplifying UI updates and user confirmation processes.The text was updated successfully, but these errors were encountered: