#programmer_checkout-beta
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1293259566644990062
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello ๐ Thank you for assisting. I am working on implementing a beta feature.
Unfortunately you're using a beta feature right now and it's not something we can help with ont his Discord server. You will want to reach out to our support team to ask for help https://support.stripe.com/contact as it requires you to be allowed in a private beta and the error means you don't have access yet
programmer_checkout-beta
That is fine, there is a similar problem regarding adding the country restrictions.
sounds good so our support team can help you directly in that case!
Thank you. I am trying to add the form params for the java library equivalent of .addAllowedCountry(["US", "CA"])
We can't help here, please work with our support team for help: https://support.stripe.com/contact
Hello! I'm taking over and catching up...
ok. give me a moment as I am trying to locate the stripe api doc on this again.
If you're wondering how to specify nested parameters using curl you can look at the code snippets we have in the API reference, like the one to create a Checkout Session for example: https://docs.stripe.com/api/checkout/sessions/create?lang=curl
Do you have a specific question about that?
I got it. shipping_address_collection[allowed_countries][0]=CA
i know the other person said they don't support beta, but I was having a similar problem with the other param to set permissions. says "invalid" -- i do have beta enabled on the account, but don't see in the api explorer
is there a way to see the beta things in this stripe shell thing ?
Can you give me the request ID showing the error so I can take a look? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
sure thing, the id is req_G4cA1wfph4XGir
In that request you're trying to specify a parameter named permissions.update.shipping_details which doesn't exist. The parameter permissions exists, which is a hash, and inside that update exists, which is another hash, and then inside that there's server_details.
i figured i was doing something wrong, although i don't understand how that would be laid out.
To put it another way, on this same request you're correctly specifying that line_items is an array of hashes, and inside the first hash you're correctly specifying that price_data is a hash, and inside that there's currency and other things.
You're not specifying line_items.price_data.currency which wouldn't work.
Does that help?
so
permissions[update][shipping_details]
or
permissions["update"]["shipping_details"]
?
or something else
Either of those should work if you're using curl.
You only need to quote stuff that has special characters, but it doesn't hurt to quote stuff that doesn't.
omg... ty so much ๐
it is past that error
fyi, it didn't work with the quotes inside the form field name
Oh, that's right, for curl you would need to quote the whole thing.
Like "permissions[update][shipping_details]"
yup. thank you. ๐
I always forget that. ๐
really appreciate the assist. was even banging back and forth through various renditions of gpt to reformat this.