fixes
This commit is contained in:
@@ -34,9 +34,8 @@ function _booking_get_stripe_private_key() {
|
||||
* Sample Stripe Form.
|
||||
*/
|
||||
function booking_stripeform_form($form, &$form_state) {
|
||||
|
||||
// Let's make sure you have the stripe library installed.
|
||||
if($path = libraries_get_path('stripe-php-latest')) {
|
||||
if($path = libraries_get_path('stripe')) {
|
||||
if(!is_file($path . '/lib/Stripe.php')) {
|
||||
form_set_error('form', t('You need to install the stripe library from !link before you can use this form.', array('!link' => l('here', 'https://stripe.com/docs/libraries'))));
|
||||
}
|
||||
@@ -167,7 +166,7 @@ function booking_stripeform_validate_form_payment($form, &$form_state) {
|
||||
if($errors = form_get_errors()) {
|
||||
return;
|
||||
}
|
||||
$path = libraries_get_path('stripe-php-latest');
|
||||
$path = libraries_get_path('stripe');
|
||||
require_once($path . '/lib/Stripe.php');
|
||||
|
||||
Stripe::setApiKey(STRIPEFORM_PRIVATE_KEY);
|
||||
|
Reference in New Issue
Block a user