Closed (fixed)
Project:
Stripe Subscription
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
30 Oct 2016 at 20:44 UTC
Updated:
20 Dec 2016 at 21:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
torgospizzaPatch attached.
Patch also relies on a newly-added function in Stripe Customer module that allows us to more easily retrieve the $customer object from an event, since different event types will include the customer at a higher level. (If the event is subscription.created, for instance, the customer will live in $event->data->object->customer, but if the event is customer.created, the customer will live in $event->data->object.)
Comment #4
torgospizzaThis has been working well for me and makes the code easier to read.