Commit 5beeb39e authored by JonGold's avatar JonGold

Retrieve customer_id correctly

parent 307d80b9
......@@ -115,7 +115,7 @@ class CRM_Stripe_Api {
// Common parameters
switch ($name) {
case 'customer_id':
return (string) $stripeObject->customer;
return (string) $stripeObject->data->object->customer;
case 'event_type':
return (string) $stripeObject->type;
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