#majks_best-practices
1 messages ¡ Page 1 of 1 (latest)
đ 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.
There's no API for this I'm afraid, no. You'd need to manually calculate the fee: https://support.stripe.com/questions/passing-the-stripe-fee-on-to-customers
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
https://stripe.com/en-si/pricing I saw here that is additional +2% fee if there is currenct conversion
It is possible to prevent currency conversion, so I accept only in EUR
Well it depends on where the FX/conversion is happening. We'd only do auto FX for presentment if you're using Checkout: https://docs.stripe.com/payments/checkout/adaptive-pricing
Otherwise you determine the presentment currency when creating the payment/session
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
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
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?
Yes
Thank you. Currently am doing product researche before development
I have few more question if you do not mind
Sure
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
Any details about the card used for the payment/session would be available on the underlying Charge object, via payment_method_details hash: https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
Recommendation is to use checkout.session.completed for Checkout: https://docs.stripe.com/payments/checkout/fulfill-orders
No such event as checkout.session.canceled
.expired will fire when the payment page hits the expires_at timestamp (default 24 hours after creation)
Thank you for recommendation will use checkout.session.completed. In this step there is no way that payment could failed?
Not for card payments, no. Different for other async PMs if you plan to use them: https://docs.stripe.com/payments/checkout/fulfill-orders#delayed-notification
For now only cards, apple pay and google pay
Then checkout.session.completed is sufficient
Thank you
When checkout.session.completed I want to receive data about Stripe fees. Can I do that
On the checkout.session.completed event there's a payment_intent field you can use that ID to pass to the code snippet above
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
If you can settle in both CHF and EUR, then payments in either of those currencies will settle in the native balance in Stripe