#Suero
1 messages · Page 1 of 1 (latest)
Hi, can you share the specific document you're following for this integration?
My code:
router.post('/create-payment-intent', verifyToken, async (req, res)=>{
const { items } = req.body;
// Create a PaymentIntent with the order amount and currency
const paymentIntent = await checkout.paymentIntents.create({
amount: calculateOrderAmount(items),
currency: "brl",
payment_method_types: ['card', 'boleto'],
});
res.send({
clientSecret: paymentIntent.client_secret,
});
})
We have an Address Element Beta that yo might be interested in, https://stripe.com/docs/elements/address-element. Otherwise, you're correct you'd add this on your end.
Hm, So I can't insert any Shipping/Address fields in the existent form?
Because it would look kinda strange on the "Boleto" payment method, like the user would have to fill the informations twice...
When it's required by the Payment Methods, these are handled out of the box.
Hm, okay
Just one last question
How can I change the language of the form
I would like to change it from english to portuguese
Oh I think it's in english automatically
Nevermind what I just said
Thanks for helping, have a good day!
you can change the locale, https://stripe.com/docs/js/appendix/supported_locales to Portuguese.
Yeah, I just figured that my browser was in English, I was expecting it to be on portuguese
But I would like to stay like that, thanks for answering