#popchenk_api

1 messages · Page 1 of 1 (latest)

unborn mauveBOT
#

👋 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.

kindred pine
#

sorry, I forgot to finish it. I do not see the "mandate_data" object in the stripe developer log.

silver moat
#

Hi, let me help you with this.

unborn mauveBOT
silver moat
#

I don't think this is the right Request ID. Could you please share the one with the error?

kindred pine
#

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

brittle stag
#

👋 taking over for my colleague. Let me catch up.

kindred pine
#

thank you tarzan 🙂

brittle stag
#

this PI only requires confirmation

kindred pine
#

weird, I am getting this error -> When confirming a PaymentIntent with a link PaymentMethod and setup_future_usage, mandate_data is required.

brittle stag
#

Oh I see this is the request req_8HxPruWkFK11lB

kindred pine
#

oh yeah, sorry, I didnt know what request to send :x

brittle stag
#

no worries

#

give me a moment

kindred pine
#

no problem 🙏🏿

brittle stag
#

sorry still looking into this

#

I mean one thing I see different is that you're not passing the return_url

kindred pine
#

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.

brittle stag
kindred pine
#

sure, I will add it let me try

#

still the same error req_lLw6ogIbjJaulN

brittle stag
#

ok give me a moment

kindred pine
#

sure

brittle stag
#

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'

kindred pine
#

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.

brittle stag
#

when you reuse a PM regardless of what type it is you should use off_session: true instead of setup_future_usage: 'off_session'

kindred pine
#

ok ok ok

brittle stag
#

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

kindred pine
#

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.

brittle stag
#

Presentment currency

AUD, CAD, CHF, CZK, DKK, EUR, GBP, NOK, NZD, PLN, SEK, or USD

kindred pine
#

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.

brittle stag
#

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.

kindred pine
#

cool cool, so we wont be able to use it I guess. Thank you so much.

brittle stag
#

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?

kindred pine
#

in Czechia, but we only accept USD invoices for now.

#

yes

brittle stag
#

hmmmm ok

#

then you need to turn it off

kindred pine
#

maybe we will get it working in the future, but it was pain to manage all the currencies.

#

thank you tarzan

brittle stag
#

sure let me know if you need any more help