#joseDEvS - Invoices
1 messages · Page 1 of 1 (latest)
Hello! You can, but you would need to use several different Stripe accounts to do so.
ohh I understand ,
one more question, the image is correct "statement descriptor" ?
No, I don't think that's the correct syntax. That's for a Checkout Session, correct?
I believe it should be like this:
'payment_intent_data' => [
'statement_descriptor' => 'Some'
],
yes , thank you
When I pay, checkout session, how does it get to the person who paid the bill? How would I test it in test mode
Sorry, not sure I understand your question, can you rephrase or provide more details? You can test Checkout in test mode just fine though!
The question is, how do I know if I get an invoice to my client, how would I prove that, how to send the invoice to my client of what I buy?
So you're trying to prove to someone something was purchased?
Who are you trying to prove it to?
how to send invoices automatically?
a one-time payment, checkout session
One-time payments in Checkout do not use Invoices.
Are you asking about a receipt email?
yes
Do you have the Successful payments switch turned on in your Dashboard here? https://dashboard.stripe.com/settings/emails
yes, there it mentions a field "receipt email", that I have to put in the checkou session configuration, right?
Are you asking about payment_intent_data.receipt_email on a Checkout Session? https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-receipt_email
yes in checkout session, So if I specify the email in the "receipt_email" field, you will receive the receipt of your payment, correct?
If you specify receipt_email in the Checkout session a payment receipt will be sent to the email address you specify there regardless of your Dashboard setting.
However, if you have the successful payment email setting in your Dashboard turned on you don't need to specify receipt_email for Stripe to send emails.
Also note that Stripe does not send emails in test mode.
When I specify the email in that field, will you get the correct default receipt?
You mean "you" the customer paying?
Or are you asking how to get an email sent to "you" the person selling?
yes, the customer paying , when you place the mail, your receipt will arrive there>
Yeah, so you can either have that setting enabled in the Dashboard and this will work automatically, or you can explicitly specify a receipt_email on the Checkout Session.
oh i understand , Is there a way to test the sending of my payment receipt in test mode?
No, not via the API. Emails will only be sent in live mode.
is there a way to preview this receipt on the dashboard?
The Charge will have a receipt_url you can visit to see the receipt: https://stripe.com/docs/api/charges/object#charge_object-receipt_url
I just saw one, query, the "statement descriptor" can be displayed on that receipt? or is the name of the platform
If you're asking if the statement descriptor from the Charge can be displayed on the receipt the answer is no, unless you put it in the payment_intent_data.description property on the Checkout Session: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-description
Not sure what you mean by name of the platform, can you elaborate?
Yes, of course, when I view the receipt it says "Receipt from .." in the header, can I customize that?
Do you have a specific reason you want to customize this? Are you using Connect?
my platform has 3 websites that have the account the same stripe account, and then it transfers to connected accounts
Gotcha - so the only way to really customize that branding is to use set on_behalf_of when you create the Checkout Session (see https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-on_behalf_of) to specify a connect account. When you do that, we'll pull the branding for the Connect account instead of the platform.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
does this work with checkout session?
Yes, it should!
Then I will only have to configure the account, its logo colors, etc? in advance thanks for your answers and patience