#shouhu
1 messages ยท Page 1 of 1 (latest)
Can you share an example pi_xxx
Can you clarify what you mean by pi_xxx? Not really sure where I could find this
The ID of a Payment Intent you're passing to the Payment Element instance
You must be creating a Payment Intent before you initialise the Payment Element
Ah I see, yes I'm creating a payment intent and using that to create the payment element. automatic_payment_methods is also set to true. This is an example id from a payment intent created in test mode. I'm not sure if the last part is sensitive information so I anonimyzed the part after secret:
pi_3Luus3DRxoS4foaB0T3Pbf8P_secret_xxx
It's not, they're safe to share. Taking a look anyway
Thanks ๐ Here's the full ID then if it helps:
pi_3Luus3DRxoS4foaB0T3Pbf8P_secret_RhoJaEmsiHQtGmSPC8uiBNCMs
Hmm, not seeing anything obvious here. To be clear, it works (as in giropay, Sofort are present) in test mode but not in live?
Can you share a live pi_xxx?
Both Sofort and giropay are configured on your account: https://dashboard.stripe.com/settings/payment_methods
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
There's also some locality specific limitation to these PMs that is likely bypassed in test mode. Where are you located?
Correct, Giropay and Sofort are present in test mode but not in live mode. Both Sofort and Giropay are turned on in the Stripe Dashboard page you linked(both in test and live mode). Apart from clicking the turn on button there was no configuration done though, and they are shown as "On" now with a green checkmark. I'm located in Germany and from my understanding those payment methods should work here. I'm not using a VPN and have tested from multiple networks.
Here is an payment intent ID from live mode: pi_3Luv6wDRxoS4foaB1wX4Qp3h_secret_zPz9LZJLpPcHdt6iFm8xOYJRp
Let's see
You're not using automatic payment methods for that PI. You passed payment_method_types: https://dashboard.stripe.com/logs/req_e3zCI6DOOoqRqM
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You need to pass: automatic_payment_methods: { enabled: true }
Thanks! I wasn't aware that I could check the logs for the payment intents. But this must be it then, I already made those changes but I think the problem then is that those changes are not reflected yet in our production environment, only in staging, so the issue was about our infrastructure ๐