#Marco Túlio Rocha-pm-compatibility

1 messages · Page 1 of 1 (latest)

cold horizon
#

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

fickle wasp
#

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?

fervent galleon
#

The "ticket" option is not showing.

#

and already activated on the platform

fickle wasp
#

That is still extremely vague. Are you a developer?

fervent galleon
#

yes

fickle wasp
#

Ah okay that screenshot helps actually

#

So you are using Stripe Checkout?

#

Can you provide it?

fervent galleon
#

in_1Kxa2TFlcWt5R0Wy5WkDWO00
pi_3Kxa2UFlcWt5R0Wy12eXYnfJ

fickle wasp
#

Looking!

#

Hmm no that PaymentIntent doesn't have an error associated with it

fervent galleon
#

nop

#

need to know why bullying Type "boleto" not showing up at checkout

#

😢

fickle wasp
#

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?

fervent galleon
#

yes

#

I will forward

#

checkout and invoice

fickle wasp
#

Sorry, server is busy. I'll circle back in a moment.

fervent galleon
#

ok

#

waiting

fickle wasp
#

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

fervent galleon
#

this ?

rotund breach
#

Correct. And add the payment method options my colleague mentioned above

fervent galleon
#

THIS ?

payment_settings: {payment_method_types: ['card', 'boleto']},

rotund breach
#

No

#

You need to set the boleto settings within payment_settings

fervent galleon
rotund breach
#

Not define the payment_method_types

fervent galleon
#

checkout and invoice

rotund breach
#

You correctly remove the payment_method_types line

#

initially

fervent galleon
#

Was it correct for checkout and invoice?

fervent galleon
#

but i need ticket and card

rotund breach
#

For what?

#

I was just linking the param you need to set when creating checkout sessions

fervent galleon
#

ok

#

how does it work?

rotund breach
#

How does what work?

fervent galleon
#

"checkout" and "invoice" available in card and boleto mode?

rotund breach
#

Hm that looks ok to me. You can test this out in test mode and troubleshoot. Let me know if there's another error

fervent galleon
#

Invalid currency options usd. The payment method boleto only supports the following currencies: brl

rotund breach
#

The price object you use must be in brl

fervent galleon
#

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?

rotund breach
#

Not necessarily. Just with the boleto payment method, the prices must be in BRL

fervent galleon
#

you say that prices change automatically when you say "boleto"?

rotund breach
#

No boleto only accepts payments in brl

#

You would need to manually specify brl in the price object

fervent galleon
#

this ?

rotund breach
#

It doesn't look like you are forming things correctly

#

Either price_data or price should be used

#

But yes, you need brl as the currency

fervent galleon
#

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?

rotund breach
#

If you want to accept boleto, you will have to

lavish python
#

@fervent galleon Hello! Are you all set here or do you have other questions?

fervent galleon
#

calm down my brother