#hari-subschedule

1 messages · Page 1 of 1 (latest)

humble parrot
#

hi there hari, can you share the request id which you've tried this?

elder forge
#

I tried passing
stripe.subscriptionSchedules.create({
customer: customerId,
start_date: 1646154849,
end_behavior: 'release',
phases: [
{
items: prices,
coupon: coupon
},
],
payment_settings: {
payment_method_types: ['us_bank_account'],
}

})

humble parrot
elder forge
#

acct_1HrjUNHaof0IjCDr

humble parrot
elder forge
#

Yes, that didnt work. then I tried
{
customer: customerId,
start_date: 1646154849,
end_behavior: 'release',
phases: [
{
items: prices,
coupon: coupon
},
],
default_settings:{
default_payment_method: 'us_bank_account'
}
}

#

No such PaymentMethod: 'us_bank_account'

humble parrot
#

the default payment method expects a PaymentMethod id. This means you should set up the relevant payment method on the customer before passing in the PaymentMethod id