CRM_Core_Error::fatal(ts('Stripe.js token was not passed! Report this message to the site administrator.'));
CRM_Core_Error::statusBounce(ts('Unable to complete payment! Please this to the site administrator with a description of what you were trying to do.'));
Civi::log()->debug('Stripe.js token was not passed! Report this message to the site administrator. $params: '.print_r($params,TRUE));
}
// Check for existing customer, create new otherwise.
...
...
@@ -387,7 +489,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
if(!isset($customer_query)){
$sc_create_params=array(
'description'=>'Donor from CiviCRM',
'card'=>$card_details,
'card'=>$card_token,
'email'=>$email,
);
...
...
@@ -428,7 +530,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
// coming through for the 2nd time. Don't need to update customer again.