#RubyDev
1 messages · Page 1 of 1 (latest)
I'm creating payment link
and this error is related with invalid_request_error - shipping_address_collection
Did you get the auto string that you are passing in from one of our docs?
I'm submitting 'auto' or 'required'
From our reference, it shows that that parameter takes a list of country codes https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-shipping_address_collection
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes :billing_address_collection=>"required", :shipping_address_collection=>"auto"
is required is another param
?
check this req req_qFw65i0rjEMR0y
@slim pewter
So the issue with the call is that you are currently passing in this:
shipping_address_collection: "auto",
When our API reference shows that it is expecting something like this:
allowed_countries: ['US', 'CA']
}```
Can you link to the doc where we show "auto"? It sounds like that doc may be outdated or inaccurate, I can make sure we have accurrate info there
Okay solved, thanks