#skoshkarli

1 messages · Page 1 of 1 (latest)

sullen archBOT
candid geode
remote drift
#

i call stripe.customers.update(MY_CUSTOMER_ID, {
invoice_settings: {
default_payment_method: MY TOKEN,
},
})

#

req_LP9Sm0w5NqPYv0

candid geode
#

Is this the correct request ID? I see it's succeeded.

remote drift
#

yeah it succeeds but it doesnt set the default payment method on the customer

#

the payment method is there, but its not default

candid geode
#

I don't see you passed in a default_payment_method in the request.

#

the request body is empty

remote drift
#

this is what i call

#
stripe.customers.update(customerId, {
      invoice_settings: {
        default_payment_method: tokenId,
      },
    });
candid geode
#

Is the tokenId set? can you do a console.log and see its value?

remote drift
#

let me confirm, one sec

#

yeah you are right, looks like it wasnt being passed in for some reason. Thank. you