#Marco Túlio Rocha-pm-compatibility
1 messages · Page 1 of 1 (latest)
Hi there! I wish I could help, but this chat is focused on developers and technical questions. Our support team will be able to assist you better than I can: https://support.stripe.com/contact/email
Find help and support for Stripe. Our support center 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.
Let's talk in here @fervent galleon
You said: "how does stripe identify that i am from brazil, to show the "boleto" ?
by address, telephone or other item?"
Where are you seeing that error message exactly?
Can you give me more information about exactly what's happening?
That is still extremely vague. Are you a developer?
yes
Ah okay that screenshot helps actually
So you are using Stripe Checkout?
There should be a request ID (https://support.stripe.com/questions/finding-the-id-for-an-api-request) associated with the error
Find help and support for Stripe. Our support center 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.
Can you provide it?
in_1Kxa2TFlcWt5R0Wy5WkDWO00
pi_3Kxa2UFlcWt5R0Wy12eXYnfJ
Looking!
Hmm no that PaymentIntent doesn't have an error associated with it
Ah maybe you are talking about an error like: https://dashboard.stripe.com/logs/req_p7HGg8Y6c0YHEb?
Okay the above PaymentIntent was created from a Subscription
It wasn't using Stripe Checkout
Are you creating Checkout Sessions and redirecting your customers to them?
Can you share your code that you are using to do this?
Sorry, server is busy. I'll circle back in a moment.
Okay okay okay sorry again
Alright
So
The code above creates a Subscription
Then the second piece of code creates a Checkout Session
And your core question here is "why doe Boleto not appear at Checkout"
Let's test somethin
Oh
Okay I see the issue
You are only setting payment_method_types: ['card']
So you need to remove that
Otherwise we will only provide card as an option
And then you need to also pass payment_method_options as we show here: https://stripe.com/docs/payments/boleto/set-up-subscription#use-stripe-checkout
this ?
Correct. And add the payment method options my colleague mentioned above
THIS ?
payment_settings: {payment_method_types: ['card', 'boleto']},
Not define the payment_method_types
checkout and invoice
Was it correct for checkout and invoice?
but i need ticket and card
For what?
I was just linking the param you need to set when creating checkout sessions
How does what work?
"checkout" and "invoice" available in card and boleto mode?
Hm that looks ok to me. You can test this out in test mode and troubleshoot. Let me know if there's another error
Invalid currency options usd. The payment method boleto only supports the following currencies: brl
The price object you use must be in brl
hmm i have a problem
So every product has to be priced in "USD" and priced in "BRL", for sales in Brazil and the USA?
Not necessarily. Just with the boleto payment method, the prices must be in BRL
you say that prices change automatically when you say "boleto"?
No boleto only accepts payments in brl
You would need to manually specify brl in the price object
this ?
It doesn't look like you are forming things correctly
You really need to read the API spec: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items
Either price_data or price should be used
But yes, you need brl as the currency
Today I have 3 products on the platform, each product has 2 prices in dollars, one price per month and one per year.
In Brazil, there are customers too, do you think I should create 2 more prices for each product in BRL?
If you want to accept boleto, you will have to
@fervent galleon Hello! Are you all set here or do you have other questions?
calm down my brother