#hrueger
1 messages ยท Page 1 of 1 (latest)
Which kind of emails do you want to send? You can send custrom debit notification emails: https://stripe.com/docs/payments/sepa-debit#debit-notification-emails
I'd really like to, however, as I said, this is not possible if the Stripe Creditor ID is used...
The Docs say:
When processing SEPA Direct Debit payments using the Stripe Creditor ID, debit notification emails are always sent automatically by Stripe.
Yep, you can't disable the automatic ones
Regarding the language for emails/receipts, that is inherited from the preferred_locales field on the Customer object: https://stripe.com/docs/api/customers/object#customer_object-preferred_locales
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
OK, so I need to create a customer object first, set the locale there and then pass that to the checkout session?
Is Checkout currently creating your Customer objects for you?
Not sure, I'm just passing customer_email
They should inherit the locale from the session: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-locale
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Can you share an example cus_xxx?
Ah, I didn't know that. We haven't been setting locale so far, because the autodetect from the browser locale was working just fine. That probably solves the issue.
Yeah it should inherit automatically from the browser/system. If you share an example, I can check
Thanks, let me find one
I can't find any customers there, the dashboard shows this. Probably because we're not creating any?
Hmm, are you just processing one-time payments? Sorry I just assumed recurring/subscriptions
Can you share a cs_xxx ID?
Sure
cs_live_a165OXFuKjArp8YuGQ3jwzBXFtQbfkN809AGlb1L3VZYvVMimGUHQ99ZNc
locale is set to null in the cs object, so it will probably work if I set it to de
Ok, so in mode: 'payment' sessions Checkout won't create Customer objects by default (customer_creation: 'if_required'). My assumption is that because of that any emails sent to the customer will not be localised
You could pass customer_creation: 'always' (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_creation) which means a Customer object will be created and inherit the locale from the session and maybe the SEPA emails will be localised
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
OK, I'll try that! Thanks
I'm not sure about that though, you'd need to test. I know it works for invoice/receipts, but not sure about the SEPA notifications
It won't fail if someone with that email / card number has purchased something before, will it? Like if there were duplicate customer objects then
It's kind of difficult though since those mails are not sent in test mode ๐ But if you don't have an easy way to test either, I might just have to wait for the next customer to purchase and pay via sepa.
We don't de-deuplicate based on emails, no. Expectation would be that your persist that cus_xxx alongside your internal user/customer record and then it can be re-used for future purchases
OK, currently we don't have customers, everything as guest. But I'll keep that in mind. Thanks
And then I have one more question:
Can I set the Creditor ID when creating an account? I'm using stripe.accounts.create. I can see that the account object as a field called settings.sepa_debit_payments.creditor_id but I can't find any documentation on how to set it. In stripe.accounts.create this is not available.
Yeah I think that's only editable via the Dashboard
The field on the Account object is read-only
OK, thanks.