#.saberkhan

1 messages · Page 1 of 1 (latest)

cyan trailBOT
keen fiber
#

automatic_tax is Stripe Tax, and automated approach, while Tax Rate is a manual, different API.

#

When you say you are using Tax Rate, which Doc or API you are actually using?

lofty wave
#

automatic_tax
optional associative array
Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.

Hide child parameters
automatic_tax.enabled
REQUIRED
Set to true to enable automatic taxes.

#

For "Tax Rate", i am using the following link

keen fiber
#

Ok, then you follow along that Doc, below it says "Fixed tax rates" and "Dynamic tax rates" and it uses different parameters

lofty wave
#

We will use "Fixed Tax rate"

#

So "automatic_tax" for Checkout session should be "FALSE". Correct?

keen fiber
#

Yes, but you can omit the parameter. Its default value is false

lofty wave
#

Thank you!

#

Instead of "line_items.price", can I use "line_items.price_data" in Checkout session?

keen fiber
#

yes!

lofty wave
#

All right

#

"line_items.price_data.product_data.description", please share the maximum characters that are allowed for this field.

keen fiber
#

I am not sure! You can test it yourself btw

#

Try to pass as long text as you can and see what validation it triggers

lofty wave
#

ok

#

"line_items.tax_rates"
optional
The tax rates which apply to this line item. Is this a Boolean function? It is not clear from the documentation. Thanks!

keen fiber
#

It's an optional array

lofty wave
#

What values we can pass via this array?

keen fiber
#

String! It's an array of string

#

each string is the tax rate id

lofty wave
#

That makes sense that we can pass tax rate id. Thank you again.

lofty wave
#

"consent_collection.terms_of_service", This ToS is from Stripe or from Platform?

keen fiber
#

Check the API reference her ehttps://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-consent_collection-terms_of_service

lofty wave
#

There must be a valid terms of service URL set in your Dashboard settings." Still not sure is terms and service from Stripe or from Platform. I understand that I need to add a url for ToS but still the question is who will compose the content of ToS? Is it from Stripe or from Platform. Thanks again.

keen fiber
#

You! in the URL you specify there

#

As a business you should have a ToS

lofty wave
#

ok

#

If we create invoice from Checkout session, will Stripe send the invoice to the recipient email address automatically?

keen fiber
#

If you use invoice_create parameter, yes

lofty wave
#

What email address Stripe will use to send the invoice?

#

Because I do not see any email address in invoice creation sectons in checkout session.

keen fiber
#

Stripe will use some email address with @stripe.com You can test sending and Invoice receipt in Dashboard to your email and see

lofty wave
#

I need to look test it.

keen fiber
#

Here is what I see invoice+statements+acct_xxx@stripe.com

#

Click "Send receipt" here

lofty wave
#

String concatenation with connected account or platform account number?

keen fiber
#

Not sure, let' test it yourself

lofty wave
#

Since item is paid by the buyer so it should name as a "Receipt" not invoice. Correct?

keen fiber
#

In your case it's Invoice Receipt, so yes basically a receipt

#

In other case, it could be the non-paid Invoice sent to customer email

lofty wave
#

How can we send a receipt as shown in the above image? From where? Any documentation to send the receipt?

keen fiber
#

The receipt is sent automatically if your customer has an email. The button above is only for when you want to send the receipt to an addiotional email address, like manual request

lofty wave
#

So for "Receipt" and "Invoice", Stripe uses the same functionality to send invoice if it is not paid and if it is paid then receipt. Correct?

keen fiber
#

If you mean functionality = using same email address, then yes

lofty wave
#

I mean invoice creation parameters in Checkout session.

keen fiber
#

Ah, that parameter will only send the Invoice receipt. Invoice generated by Checkout Session is basically paid at the same time the customer finish on the Checkout page

#

Like, you will have an already paid status Invoice

lofty wave
#

ok

#

Thank you!

#

Will successfule Checkout session if paid, will automatically create "Charge" object?

keen fiber
#

Yes

#

You will receive Webhook events, ie payment_intent.succeeded and checkout.session.completed