Hi
The stripe resource is not interpreting array params correctly.
Let me explain with an example
default_tax_rates
(in the invoices
endpoint) is a param which expects an array. The following screenshot shows how I am populating it in the UI.
But with this, stripe throws an error, complaining about an “Invalid Array”. And if you look at the request that was sent, it has the following snippet.
"body":"customer=cus_J66p7t6N0UEGn1&default_tax_rates=txr_1IZCF7BTm0Wy4mM2eyC38Eqq"
Stripe is expecting something of the form
"body":"customer=cus_J66p7t6N0UEGn1&default_tax_rates[0]=txr_1IZCF7BTm0Wy4mM2eyC38Eqq"
Interestingly, if you specify TWO tax rates in the UI (hardcode the other one), the request goes through perfectly.
(Cannot attach a screenshot because new users are allowed only one media item)
APOLOGIES for the multiple self-replies, could not find a way to attach multiple screenshots
Also, please ignore tax_rates
vs default_tax_rates
, they are from different queries, but they behave the same