Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle invoices for one-off payments #92

Open
erommel opened this issue Apr 23, 2019 · 1 comment
Open

Handle invoices for one-off payments #92

erommel opened this issue Apr 23, 2019 · 1 comment

Comments

@erommel
Copy link
Contributor

erommel commented Apr 23, 2019

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
Copy link
Owner

Sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants