#popchenk_api
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1260156081926176829
📝 Have more to share? Add details, code, screenshots, videos, etc. below.
sorry, I forgot to finish it. I do not see the "mandate_data" object in the stripe developer log.
Hi, let me help you with this.
I don't think this is the right Request ID. Could you please share the one with the error?
oh, yeah I sent the initial checkout request let me send a off_session request real quick and send it to you.
req_ZlLWhelMZSd5Tp
this one should be the correct one
👋 taking over for my colleague. Let me catch up.
thank you tarzan 🙂
this PI only requires confirmation
weird, I am getting this error -> When confirming a PaymentIntent with a link PaymentMethod and setup_future_usage, mandate_data is required.
Oh I see this is the request req_8HxPruWkFK11lB
oh yeah, sorry, I didnt know what request to send :x
no problem 🙏🏿
sorry still looking into this
did you try replicating the same steps as in https://docs.stripe.com/payments/link/save-and-reuse#charge-saved-payment-method
I mean one thing I see different is that you're not passing the return_url
I have not changed the implementation from the basic "card" implementation, just added 'link' into the payment_methods.
I am using the stripe checkout flow for the initial payment setup -> where I set the setup_future_usage to 'off_session'. It works correctly. I am able to process the whole payment. The only problem comes when I am trying to do the "off_session" payment_intent. It needs some type of "mandate_data". But I have no idea what that is.
I'm just asking you to add return_url to the confirm call https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-return_url
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok give me a moment
sure
wait 🤦
how did I miss this
sorry my bad
when you're reusing a PM in an off_session PayementIntent you need to pass off_session: true
instead of setup_future_usage: 'off_session'
ok ok let me try
oh well damn, now it works 😅 thank you so much @brittle stag . Will it still work with the normal card payments though ? I had to use this setup_future_usage: 'off_session' for normal card payments w/o link.
when you reuse a PM regardless of what type it is you should use off_session: true instead of setup_future_usage: 'off_session'
ok ok ok
the former indicates that the PI is being done without the presence of the customer whereas the latter indicates to the customer that you are going to save their provided PM to be used in a future time even when they're not on_session
thank you once again tarzan :),
Also one more question -> not really a dev question. I don’t know if you know an answer for this one, if not I will ask some other support guys. We have received an email that you are going to be enabling another payment_method for us called "klarna", there is one problem though, we only accept USD currency. I have tried to test the payment_method, but it only accepts European currencies. So will it somehow work for us or do we just turn it off. I am a bit terrified that it will be enabled automatically and we will not be able to process these type of payments.
Presentment currency
AUD, CAD, CHF, CZK, DKK, EUR, GBP, NOK, NZD, PLN, SEK, or USD
hmm, I have tried to test it and this was the error -> "The currency provided (usd) is invalid for one or more payment method types on this PaymentIntent. The payment method type klarna only supports the following currencies: eur, dkk, gbp, nok, sek, czk, pln, chf. Either correct the provided currency, or use a different PaymentIntent to accept this payment method type."
No problem, I will test it one more time and contact you again if I dont get it working.
Once again thank you for your patience and guidance tarzan.
If you’re based outside of the EEA, UK, or Switzerland, then you can only transact with customers within your country, and the presentment currency must be the currency of your country. For example, an Australian business must present in AUD, and can only transact with buyers in Australia.
cool cool, so we wont be able to use it I guess. Thank you so much.
where is your account based?
If you’re based in the EEA, UK, or Switzerland, then you can transact with consumers across the EEA, UK, and Switzerland, provided the presentment currency matches the currency of the customer’s country. For example, a Swedish business can present in EUR to accept Klarna from a buyer in Germany.
Czech Republic right?
maybe we will get it working in the future, but it was pain to manage all the currencies.
thank you tarzan
sure let me know if you need any more help