#majks_best-practices

1 messages ¡ Page 1 of 1 (latest)

sullen wingBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1242808520919879701

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

half void
shut solstice
#

It is possible to prevent currency conversion, so I accept only in EUR

half void
#

Otherwise you determine the presentment currency when creating the payment/session

shut solstice
#

So if I creatte checkou order like this and set up currency. There is no way that i would be charged with extra 2% fee

half void
#

Yeah so there'd be no FX for you, the merchant, in this case (assuming your account can settle in EUR)

#

The FX would be incurred by the customer if they have a non-EUR card

shut solstice
#

So if customer will be from Switcherland where currency is CHF. And if he would made purchase. His bank would make conversion and then payment to us will be in EUR with no extra charge for us?

half void
#

Yes

shut solstice
#

Thank you. Currently am doing product researche before development

#

I have few more question if you do not mind

half void
#

Sure

shut solstice
#

How can I know if it is standard or premium card?

#

I read in docs if I sell products to normal people I should treat it as standard card. But if I do Bussines to Bussines i shoudl treat by premium economic card

half void
shut solstice
#

Thanks

#

When confirming order I am listening for events.

#

I use 'if event.type == 'payment_intent.succeeded'' to confirm that order is succeded

#

'checkout.session.expired' and 'checkout.session.canceled' for order canceled

half void
#

No such event as checkout.session.canceled

#

.expired will fire when the payment page hits the expires_at timestamp (default 24 hours after creation)

shut solstice
#

Thank you for recommendation will use checkout.session.completed. In this step there is no way that payment could failed?

half void
shut solstice
#

For now only cards, apple pay and google pay

half void
#

Then checkout.session.completed is sufficient

shut solstice
#

Thank you

#

When checkout.session.completed I want to receive data about Stripe fees. Can I do that

half void
#

On the checkout.session.completed event there's a payment_intent field you can use that ID to pass to the code snippet above

shut solstice
#

Thank you, will check that

#

This is more bussines related question. Our firm has CHF bank account and EUR bank account. And we want to support both payment currencies. Same product will be posible to buy with CHF and EUR. User will select on our side currency he wants to pay with. And our backend will process it in that currency

#

Will there be any additional cost for us?

#

When CHF will be transfered to our bank or something like that

#

You clarified that there will be no fees for currencies exchange

half void
#

If you can settle in both CHF and EUR, then payments in either of those currencies will settle in the native balance in Stripe