Arsenal21 / stripe-payments

Stripe Payments Plugin for WordPress
11 stars 8 forks source link

Handle invoices for one-off payments #92

Open erommel opened 5 years ago

erommel commented 5 years ago

Requested by customers https://s-plugins.com/forums/topic/stripe-billing-invoices/

  1. A new option needed for the settings, something like "Create Stripe Invoice for payments".

  2. 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

  3. Then source token should be used to pay invoice via API https://stripe.com/docs/api/invoices/pay

Arsenal21 commented 5 years ago

Sounds good.