#umairasif7-subscription-payments

1 messages · Page 1 of 1 (latest)

brave harbor
dire otter
#

I did that.

#

I need to add payment method id as its currently taking user's default payment method

brave harbor
#

I don't understand what you're asking. Can you elaborate on what you're doing versus what you're trying to do?

dire otter
#

I am updating the billing cycle to "now" for the user's subscription, which will charge the user. For that, stripe is deducting the amount from the user's default payment method, but I want to give the user an option to select the payment method.

brave harbor
#

Updating the billing cycle to now will instantly charge the default payment method, so you need to present the customer with a page that allows them to change their default payment method before you even get to that step.

dire otter
#

Is there any option in subscription update api to add payment method other than default payment method?

brave harbor
dire otter
#

$stripe->subscriptions->update(
'sub_1L6eIHGKOnznjcwj9W16I5AM',
['metadata' => ['order_id' => '6735'],
'default_payment_method' => 'id'
]
);

#

Like this?