#stachujone5

1 messages · Page 1 of 1 (latest)

chrome boughBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

summer sapphire
gloomy oxide
#

Can you share the example Checkout Session (cs_xxx) and the payment method you expected to see?

summer sapphire
#

cs_test_b118NSzKonlsWjHjJWOjpnOqcyyN2GtFG5pCFelue8UmTBDPBZ9NqIbg9y#fidkdWxOYHwnPyd1blpxYHZxWjA0TnRufGpPSXBATn8wT0hUMH1MdGlvdmJEdDBoZEhvNFAzcmFVTE9CbDVxUW9ESGZBdG12Rl9CNjUxZHRMT0xIMW9pdTFJSV8yTEtPX2ZuZFVWSXF9cTxsNTV0fDNQbWpRZicpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPydocGlxbFpscWBoJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl

#

Blik

gloomy oxide
summer sapphire
#

How can I set multiple currencies in line items

#

so I can support another countries?

#

I am creating line items like that and I'd like to let user use his local payment methods

#

so e.g Blik

#

It would have to convert usd to pln i guess

gloomy oxide
#

If your Stripe account country is US or Canada, automatic currency conversion is supported if the settlement currency is in USD or CAD: https://stripe.com/docs/payments/checkout/automatic-currency-conversion

If your Stripe account is not listed in the country, then manual pre-defined multi-currency is supported with using pre-defined price, but not with ad-hoc price with using price_data

Automatically present prices in your customer’s local currency.

summer sapphire
#

but it redirects me to /dashboard

#

I've USD as a default stripe acc currency

gloomy oxide
#

As per my checking, your Stripe account is from Poland. Automatic currency conversion is only supported in United States and Canada

summer sapphire
#

What If I am not creating products in stripe dashboard

#

and I am using line items

#

and price is different each time

#

I mean I am manually defining price_data in my line items

gloomy oxide
#

With ad-hoc prices, i.e. using price_data, multi-currencies isn't supported. You'd need to calculate the converted amount and currency, then set in Checkout Session request

summer sapphire
#

Hmm but user in checkout session can change his country

#

So I can't pre define currency

gloomy oxide
#

With ad-hoc price, multi-currency is limited. I'm afraid there is no other better way with your Stripe account country in Poland

summer sapphire
#

So in order to support BLIK or other payments in regional currencies I'd have to create products manually in stripe dashboard

#

Or maybe this Price instead?

gloomy oxide
#

Yes, correct!

summer sapphire
#

What If Image I want to display is created ad-hoc

#

Then I can't create products in dashboard and use them

gloomy oxide
#

Sorry, I don't get what you meant. Your above code has set the image in the ad-hoc price under line_items.price_data.product_data.images

summer sapphire
#

I'd like smth like this:

  1. I create a checkout with a one time payment - products will always be the same but each checkout will have a different image so thats why I can't use pre defined products

  2. I'd like to accept regional payment methods like BLIK.

Is there a way I can do it or I have to give up on regional payment methods If I cant pre define products because of dynamic images

gloomy oxide
#

I see! Thanks for sharing! Only ad-hoc price can support dynamic image, but it doesn't support multi-currencies. For pre-defined price for multi-currency support, the product image can't be changed for each Checkout Session

#

I'm afraid there is a trade off here

summer sapphire
#

The only solution would be creating a new account based in US or canada?

gloomy oxide
#

Yup! I'd recommend giving a try in test mode

summer sapphire
#

And it would need to be a new acc? Cant i change my current acc location?

gloomy oxide
chrome boughBOT
summer sapphire
#

I can change only these

merry heath
#

Hi @summer sapphire I'm taking over this thread

summer sapphire
#

Sure,

#

Will changing the address allow me to use automatic currency conversion?

#

I mean changing the address to US / Canada as its only allowed there

merry heath
#

No, that's just your business address.

As River mentioend earlier, you can't change your account country.

summer sapphire
#

Okey, thanks

#

If your business isn’t eligible for automatic currency conversion or you want more control, you can also manually define multi-currency prices in the API or the Dashboard. Manually defined multi-currency prices override automatic currency conversion, even if it’s enabled.

And this?

#

Can i do this for products added ad-hoc using line items and price_data?

#

Can I create a Price without creating a product?

#

So I will be creating products ad-hoc and just passing prices like 25$ which will be translated to like 20Euro or so?

merry heath
#

No you can't create a Price without creating a product

summer sapphire
#

And are there any restriction regardless creating stripe account with USA as a country?

So automatic currency conversion works?