Jump to content

Front End Stripe Associated With Service On Blesta


Recommended Posts

Posted

Hey all devs--wondering if you could point me in the right direction,

 

We are trying to create a front end for stripe on our website (via Stripe API) so that users can process payments on our website:

This is what I am trying to achieve:

 

1) Gather all user/card data in a form on our website

2) Charge the card for an invoice on a recurring Blesta service we created using universal module

3) Mark that invoice as paid accordingly

 

My questions on doing this:

1) Would I be using the Stripe_Charge::create(); to create this charge?

2) How would I associate this charge to a specific customer's invoice?

 

Any push in the right direction would be awesome!

 

Posted

Thank you, naja7host, the gateway is properly installed and working via blesta.

 

My employers, however, would like to make API calls via stripe and create a form on our website without having to touch the blesta billing management.

Any ideas?

Posted

Payments::processPayment has a parameter, $options, which allows for invoices (referenced by ID) to be specified along with the amount to be applied to them, e.g.

$options['invoices'] = array('26' => "5.25", '107' => "4.75");

The amounts in the invoice list should be <= the total amount specified in the $amount parameter.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...