Skip to content
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] Pass PaymentIntent to ExternalPaymentMethodConfirmHandler #9179

Closed
azazellj opened this issue Sep 4, 2024 · 1 comment
Closed
Labels

Comments

@azazellj
Copy link

azazellj commented Sep 4, 2024

Is your feature request related to a problem? Please describe.

When payment is initialized, PaymentIntent is not passed to the callback, I must do API call to retrieve needed data.

Describe the solution you'd like

fun confirmExternalPaymentMethod(
        externalPaymentMethodType: String,
        billingDetails: PaymentMethod.BillingDetails,
        paymentIntent: PaymentIntent?,
)

Describe alternatives you've considered

Additional context

I'm doing an external payment and I must pass amount & currency into it.

@jaynewstrom-stripe
Copy link
Collaborator

Hi @azazellj - you can solve this without adding it on the Stripe side by passing this data to your callback, or storing it in a centralized place that it has access to.

We can't pass the PaymentIntent because not all integrations use Payment Intents, and some integrations don't provide us the Payment Intent in this flow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants