sharktek Posted August 14, 2014 Report Posted August 14, 2014 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! Quote
Blesta Addons Posted August 14, 2014 Report Posted August 14, 2014 blesta has a made gateway for stripe . you just need to install it ans setup . Quote
sharktek Posted August 14, 2014 Author Report Posted August 14, 2014 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? Quote
Tyson Posted August 14, 2014 Report Posted August 14, 2014 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.