#hari-subschedule
1 messages · Page 1 of 1 (latest)
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'],
}
})
Can you share your account id? You can find your account id by logging in to https://dashboard.stripe.com/settings/account. It'll be in the upper right hand corner and looks like acct_123
acct_1HrjUNHaof0IjCDr
creating a subscription schedule doesn't have payment_settings.payment_method_types as an option from what I can tell : https://stripe.com/docs/api/subscription_schedules/create
Can you share where are you seeing this as a parameter from the documentation?
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'
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