#S60-Cosminacho-checkout-custom-data
1 messages ยท Page 1 of 1 (latest)
just a purchase order number ๐
In that case I'd recommend the client_reference_id field: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-client_reference_id
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Alternatively you can use metadata, which is a hash of key/value pairs: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
How are you hoping to access/use this data?
is this something that the client can input in the checkout session? ๐
Essentially, when he completes the checkout process he should select if it's a company.
- he would add the name of the company + VAT number
- He will input the PO number
- He should see the invoice automatically + the PO.
There is not, no. You can't custom fields to the Checkout page. You'd need to capture those prior to creating the session (using those parameters)
You can collect tax IDs: https://stripe.com/docs/payments/checkout/tax-id-collection
But Checkout won't produce an invoice for a one-time payment
what? what do you mean by: No invoice if it's a one time payment?
am I getting this right ?
is it only available for subscriptions?
Stripe doesn't currency produce a tax compliant invoice for one-time payments. Only recurring payments yes
hmmm
You can use Invoicing if you need one-time payments and invoices: https://stripe.com/docs/invoicing
Otherwise you'd need to handle it yourself with Checkout