@jovial kestrel pressed the ❌ An Error button in https://discord.com/channels/841573134531821608/842637025524842496 to ask a question:
Error Message
{
“id”: “pi_XXXXXXXXXX”,
“object”: “payment_intent”,
“amount”: 1899, // Amount in cents (EUR 18.99)
“currency”: “eur”,
“status”: “requires_payment_method”,
“created”: 1772109901, // Unix timestamp
“description”: null,
“livemode”: false,
“client_secret”: “pi_XXXXXXXX_secret_•••XXXX”,
“amount_details”: {
Question
I want to migrate from drop-in payment flow to component-based. I have listed the payment methods custom UI (Amazon Pay, Satispay, Link), I select one of them and on Proceed Stripe should proceed with the particular payment flow immediately without some intermediate popup. Is that possible for the listed payment methods, if yes could you please provide steps?
What have you already attempted?
Tried the confirmPayment approach, but based on the types, it doesn't support Amazon Pay, Satispay, or Link. If I try to force these payment methods into confirmPayment, it returns an error that paymentMethodType should be defined.
Reproduction Steps
- Create custom component, Amazon Pay, Satispay, Link
- Payment intent is created on the BE side with automaticPaymentMethods
- After selecting the custom component, proceed with the payment flow based on what is selected
- How to achieve this is technically not clear
- Also, it's not clear whether I can verify that the hardcoded payment methods are supported or not
What are you working on?
React native app, "@stripe/stripe-react-native": "^0.59.1", "react-native": "0.81.4"