Skip to content

v1.1.0

Compare
Choose a tag to compare
@bakura10 bakura10 released this 19 Feb 21:10
· 7 commits to master since this release
v1.1.0

Add compatibility with the new 2015-02-18 Stripe API version. This change removes the "card" concept in favour of a more abstract "source" concept. ZfrCash will automatically use the right calls based on your set API version.

This adds a BC if you are using this new version (2015-02-18 or newer), as you need to replace the card occurrence to source. For instance, to create a customer with a card, instead of:

$user = $this->customerService->create($user, [
    'card' => $cardToken,
]);

use:

$user = $this->customerService->create($user, [
    'source' => $cardToken,
]);