Skip to content
Snippets Groups Projects
Commit b98e3da4 authored by mattwire's avatar mattwire
Browse files

Fix updating stripe customer

parent bc1689aa
No related branches found
No related tags found
No related merge requests found
......@@ -494,7 +494,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
// Customer was found in civicrm_stripe database, but not in Stripe.
// Delete existing customer record from CiviCRM and create a new customer
CRM_Stripe_Customer::delete($customerParams);
$stripe_customer = CRM_Stripe_Customer::create($customerParams);
$stripe_customer = CRM_Stripe_Customer::create($customerParams, $this);
}
}
......
......@@ -57,7 +57,6 @@ class CRM_Stripe_Customer {
}
public static function create($params, $paymentProcessor) {
$params['processor_id'] = $paymentProcessor->_paymentProcessor['id'];
$requiredParams = ['contact_id', 'card_token', 'is_live', 'processor_id'];
// $optionalParams = ['email'];
foreach ($requiredParams as $required) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment