#ericbirdsall
1 messages ยท Page 1 of 1 (latest)
sub_1Ls7q0FfGUAEY6nDkwM3u97x
Thanks looking
Any luck?
Sorry, got pulled away for a moment
Hmm okay
Here is your creation request for that Sub: https://dashboard.stripe.com/test/logs/req_uTfOZZpIjjxnPc
Looks like you are passing an empty string for payment_settings.payment_method_types
Is this line possibly formatted incorrectly?
"payment_settings[payment_method_types]": [ "card" ],
Hmm that looks okay to me
Me too.... I just logged out the body variable and it shows everything correctly:
{
"metadata[netsuite_account_id]": "TSTDRV2034515",
"metadata[netsuite_license_id]": "1391",
"metadata[company]": "Netgain Development - NETCLOSE [TSTDRV2034515]",
"items[0][price]": "price_1LpfV8FfGUAEY6nDvAMpj06T",
"payment_behavior": "default_incomplete",
"payment_settings[save_default_payment_method]": "on_subscription",
"payment_settings[payment_method_types]": [
"card"
],
"items[0][quantity]": "1",
"expand[0]": "latest_invoice.payment_intent",
"customer": "cus_MYnoLYL2O1olUu"
}
Which created this request:
https://dashboard.stripe.com/test/logs/req_EepFQSqvNWgrKc
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Hrmm. Run a fresh test and let's take a look at that Sub?
Since it's an ENUM, should I not have it in quotes?
"payment_settings[payment_method_types]": [ card ]
instead of
"payment_settings[payment_method_types]": [ "card" ]
No it should still be an array of strings
Err actually. Maybe not.
Try it without an array
I thought we always handled payment_method_types as an array
But maybe we don't for this param
Try "payment_settings[payment_method_types]": "card"
^ Threw an error
invalid_request_error - payment_settings[payment_method_types]
Invalid array
Yeah okay I thought so. It really should be "payment_settings[payment_method_types]": [ "card" ] ....
hmm ๐ค
Try changing something else
Feels like something is cached here
Like change your metadata for a test
Hmm so yeah when I test this myself in Node payment_settings: { payment_method_types: ['card'] }, works just fine
So it is something with the way your params are submitting here
I've got to step away but @snow sphinx will be able to assist further
Thank you, I'm going to reformat to see if that makes a difference
SOLVED: This did it...
"payment_settings[payment_method_types][0]": "card",
Wow! Okay, I wouldn't have expected that to need an index value