#programmer_checkout-beta

1 messages ยท Page 1 of 1 (latest)

quasi spearBOT
#

๐Ÿ‘‹ 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.

hard cedar
#

Hello ๐Ÿ™‚ Thank you for assisting. I am working on implementing a beta feature.

blazing hemlock
#

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

hard cedar
#

That is fine, there is a similar problem regarding adding the country restrictions.

quasi spearBOT
blazing hemlock
#

sounds good so our support team can help you directly in that case!

hard cedar
#

Thank you. I am trying to add the form params for the java library equivalent of .addAllowedCountry(["US", "CA"])

blazing hemlock
hard cedar
#

assuming a curl post -- this is a standard feature

#

not beta

lofty nimbus
#

Hello! I'm taking over and catching up...

hard cedar
#

ok. give me a moment as I am trying to locate the stripe api doc on this again.

lofty nimbus
lofty nimbus
#

Do you have a specific question about that?

hard cedar
#

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 ?

lofty nimbus
hard cedar
#

sure thing, the id is req_G4cA1wfph4XGir

lofty nimbus
#

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.

hard cedar
#

i figured i was doing something wrong, although i don't understand how that would be laid out.

lofty nimbus
#

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?

hard cedar
#

so

permissions[update][shipping_details]

or

permissions["update"]["shipping_details"]

?

#

or something else

lofty nimbus
#

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.

hard cedar
#

omg... ty so much ๐Ÿ™‚

#

it is past that error

#

fyi, it didn't work with the quotes inside the form field name

lofty nimbus
#

Oh, that's right, for curl you would need to quote the whole thing.

#

Like "permissions[update][shipping_details]"

hard cedar
#

yup. thank you. ๐Ÿ™‚

lofty nimbus
#

I always forget that. ๐Ÿ˜…

hard cedar
#

really appreciate the assist. was even banging back and forth through various renditions of gpt to reformat this.

lofty nimbus
#

Ah, no wonder it wasn't working! ๐Ÿ™ƒ

#

Always happy to help!