#joel.cf

1 messages · Page 1 of 1 (latest)

gritty gustBOT
deft shadow
#

How are you integrating/creating payments?

boreal island
#

We're creating the payment intent with a previously created payment method in the frontend

#

via the javascript sdk

deft shadow
#

I believe we localise the receipts according the the preferred_locales of the associated Customer object, if there is one

boreal island
#

We do not have a customer object in our cases

#

We're just providing the email in the receipt email field of the payment intent

deft shadow
#

Then I'm not sure there's a parameter to localise receipts on a per payment basis

boreal island
#

I didn't find one in the dev docs

#

So the way to go would be to create a customer first with a language and then attach the customer to a payment intent instead of the email only?

deft shadow
#

Yes, exactly. You can drop the receipt_email parameter then as we'd automatically send the receipt to the email field on the Customer object