Closed erickcg closed 7 years ago
Thanks for the PR! It would be better to use $date->format(DateTime::ATOM) instead changing to Carbon since Carbon extends DateTime https://github.com/briannesbitt/Carbon/blob/master/src/Carbon/Carbon.php#L53
@joecohens, Well, then you would have to change line 482: $this->trialEnd->toIso8601String()
and 221: $customer->updateSubscription(['trial_end' => $trialEnd->toIso8601String()]
Because toIso8601String() is not available to \Datetime.
Thanks 🍻 ! Closed by https://github.com/dinkbit/conekta-cashier/pull/31
$trialEnd is supposed to be a \Carbon\Carbon instance, but sometimes it is requested as \Datetime and the function toIso8601String is not valid that way.
Also on the other commits, the crate function for subscription now returns the response from conekta, so we don't have to wait for a external webhook management.