@@ -123,6 +124,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
'email'=>$email,
));
//Store the relationship between CiviCRM's email address for the Contact & Stripe's Customer ID
if(isset($new_stripe_customer)){
$stripe_customer_id=$new_stripe_customer->id;
$new_customer_insert="INSERT INTO civicrm_stripe_customers (email, id) VALUES ('$email', '$stripe_customer_id')";
...
...
@@ -134,10 +136,10 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
$stripe_customer_id=$customer_query_res;
}else{
/*
Silent error.
Email the admin that they have a customer entered in civicrm_stripe_customers DB table that don't exist in their Stripe account.
* Silent error.
* Email the admin that they somehow have a customer entered in civicrm_stripe_customers DB table that doesn't exist in their Stripe account.
*/
$mail_msg="You have a customer ($email) entered in civicrm_stripe_customers DB table that don't exist in your Stripe account. They have been successfully charged, but it won't be assigned to a 'Customer' within Stripe. To resolve this, either delete the entry in the database, or edit it and update with their current Stripe Customer ID.";
$mail_msg="You have a customer ($email) entered in civicrm_stripe_customers DB table that doesn't exist in your Stripe account. They have been successfully charged, but it won't be assigned to a 'Customer' within Stripe. To resolve this, either delete the entry in the database, or edit it and update with their current Stripe Customer ID.";
$mail_params=array(
'from'=>'jwjoshuawalker@gmail.com',
'toEmail'=>'jwjoshuawalker@gmail.com',
...
...
@@ -145,7 +147,8 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
'text'=>$mail_msg,
'html'=>$mail_msg
);
CRM_Utils_Mail::send($mail_params);
CRM_Utils_Mail::send($mail_params);
}
}
...
...
@@ -163,6 +166,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {