#meisei81
1 messages · Page 1 of 1 (latest)
Let's do it! How can I help?
this is openai subscription page
I found that the payment mehtod and billing address are in the same page
How could we do like it?
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 stripe support to collect payment method and billing address in one page?
We don't use subscription feature
That's the parameter to use to force a full billing address collection with Checkout
Which is what you've highlighted in the screenshot. Works for one-time payments, too
In which stripe page could find the integration demo?
A demo for what?
for collecting the payment method and billing adress
I don't think we have a specific demo for that. Did you try the parameter I shared?
I think the page in the screenshot I provided is the stripe's page
It is yes, via Checkout. Which you use by creating a session
That's the API docs I shared
So there's a Checkout demo page and we could follow the steps on it, right?
Preview some of the features available in our prebuilt, hosted payment page.
But I don't think it supports that specific parameter
We want to find an integration guide doc which contains how to collect payment method and billing address both
And then add the billing_address_collection parameter I linked earlier then you create the session
by the way, does it support to provide the tax number?
All of this is in the documentation, I'd recommend reading through that and let me know if you have any specific Qs
Hi, I got this error when tried to call POST /checkout/sessions api
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such price: 'price_1Lay1ZCsiaKaCQKSUocFbX2v'",
"param": "line_items[0][price]",
"request_log_url": "https://dashboard.stripe.com/acct_1LLgFF2QYrCdj1c0/test/logs/req_DgqbvKQp42b515?t=1692176233",
"type": "invalid_request_error"
}
}
But I can get this price detail through https://api.stripe.com/v1/prices/price_1Lay1ZCsiaKaCQKSUocFbX2v
https://dashboard.stripe.com/test/logs/req_DgqbvKQp42b515 was a direct charge attempt with the Stripe-Account header (for acct_1LLgFF2QYrCdj1c0). price_1Lay1ZCsiaKaCQKSUocFbX2v exists on a different account: acct_1JJwV5CsiaKaCQKS
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
If you're creating sessions on behalf of connected accounts, like above, then all objects (including price_xxx IDs) must exist on the connected accounts