Open erommel opened 5 years ago
Requested by customers https://s-plugins.com/forums/topic/stripe-billing-invoices/
A new option needed for the settings, something like "Create Stripe Invoice for payments".
If enabled, plugin should create invoice after customer creation here https://github.com/Arsenal21/stripe-payments/blob/master/stripe-payments/includes/process_ipn.php#L400 . Following API is used to create invoice using customer ID: https://stripe.com/docs/billing/invoices/one-off#creating-one-off-invoices-via-the-api
Then source token should be used to pay invoice via API https://stripe.com/docs/api/invoices/pay
Sounds good.
Requested by customers https://s-plugins.com/forums/topic/stripe-billing-invoices/
A new option needed for the settings, something like "Create Stripe Invoice for payments".
If enabled, plugin should create invoice after customer creation here https://github.com/Arsenal21/stripe-payments/blob/master/stripe-payments/includes/process_ipn.php#L400 . Following API is used to create invoice using customer ID: https://stripe.com/docs/billing/invoices/one-off#creating-one-off-invoices-via-the-api
Then source token should be used to pay invoice via API https://stripe.com/docs/api/invoices/pay