Commit 30d57b2c authored by bgm's avatar bgm Committed by Aegir user

Apply patch https://github.com/drastik/com.drastikbydesign.stripe/pull/227/files

by Monish Deb to Use setAppInfo function to set CiviCRM information.
parent 7053ff4f
......@@ -358,8 +358,9 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
$parsed_url['query'] . "&_qf_Main_display=1&qfKey={$qfKey}", FALSE, NULL, FALSE);
}
// Include Stripe library & Set API credentials.
// Include Stripe library then set plugin info and API credentials.
require_once('stripe-php/init.php');
\Stripe\Stripe::setAppInfo('CiviCRM', CRM_Utils_System::version(), CRM_Utils_System::baseURL());
\Stripe\Stripe::setApiKey($this->_paymentProcessor['user_name']);
// Stripe amount required in cents.
......
......@@ -50,7 +50,7 @@
}
else {
if (!($('.stripe-payment-form').length)) {
$('#crm-container > form').addClass('stripe-payment-form');
$('#crm-main-content-wrapper form').addClass('stripe-payment-form');
}
}
$form = $('form.stripe-payment-form');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment