$connector
$connector :
Class Subscription
__construct(\Ezypay\Contract\IDriver $connector, $validation)
Subscription constructor.
| \Ezypay\Contract\IDriver | $connector | |
| $validation | ValidationBase |
findAll(array $data = array()) : \Ezypay\Result\ResultProducer
Retrieves the list of subscription of an existing customer.
| array | $data |
findById( $id) : \Ezypay\Result\ResultProducer
Retrieves the particular subscription details of an existing customer with the given subscriptionId.
| $id | string The ID of the subscription. |
create(array $data) : \Ezypay\Result\ResultProducer
Creates a new subscription for an existing customer.
| array | $data | The Subscription data. Refer to Request Body Schema (see link). |
preview(array $data) : \Ezypay\Result\ResultProducer
Preview a subscription.
| array | $data | The Subscription data. Refer to Request Body Schema (see link). |
cancel( $id) : \Ezypay\Result\ResultProducer
You can cancel a customer's subscription and remove all future billing related to the subscription. However, all payment that was failed previously would not be removed and to be resolved separately.
| $id | string The ID of the subscription. |
update( $id, array $data) : \Ezypay\Result\ResultProducer
You can change a subscription payment method already on your payment account. It will turn subscription status to active if inactive status is found.
| $id | string subscription ID |
|
| array | $data |
addValidator(\Ezypay\Contract\IValidator $validator)
| \Ezypay\Contract\IValidator | $validator |
result() : \Ezypay\Result\ResultProducer
Result