#prycellek1992
1 messages ยท Page 1 of 1 (latest)
To rephrase, you have a customer with an active subscription and want to be able to have them pay a one-off invoice automatically?
exactly : )
sorry for my english ๐
in simple word charge let say 40$ automaticlly on card which user purchased subscription
The payment method being used for the subscription, you should be able to use that for other customer payments.
If you set that payment method as the customer invoice_settings[default_payment_method] then you can set the invoice collection_method=charge_automatically
https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Note that API-created invoices won't advance automatically (ie, to pay) unless you turn that on:
https://stripe.com/docs/invoicing/integration/automatic-advancement-collection#update-auto
Or you can call /pay for the Invoice
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thanks Buddy ๐
NP!
Thanks, and you too!
yeyyy! it worked ๐ Thanks!
๐
one more question
what is behawior if user don't have enough found or subscription or card expired?
just thinking how to handle errors
You should review here. There are number of possible outcomes:
https://stripe.com/docs/billing/subscriptions/webhooks#payment-failures
thanks ๐