#Suero

1 messages · Page 1 of 1 (latest)

stable summitBOT
vapid widget
#

Hi, can you share the specific document you're following for this integration?

gusty pier
#

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,
    });

})
vapid widget
gusty pier
#

Because it would look kinda strange on the "Boleto" payment method, like the user would have to fill the informations twice...

vapid widget
#

When it's required by the Payment Methods, these are handled out of the box.

gusty pier
#

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!

vapid widget
gusty pier
#

But I would like to stay like that, thanks for answering