#RubyDev

1 messages · Page 1 of 1 (latest)

arctic shellBOT
kindred helm
#

I'm creating payment link

#

and this error is related with invalid_request_error - shipping_address_collection

slim pewter
#

Did you get the auto string that you are passing in from one of our docs?

kindred helm
#

I'm submitting 'auto' or 'required'

slim pewter
kindred helm
#

yes :billing_address_collection=>"required", :shipping_address_collection=>"auto"

#

is required is another param

#

?

#

check this req req_qFw65i0rjEMR0y

#

@slim pewter

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

kindred helm
#

Okay solved, thanks