Example Use Cases
| Recurring Memberships |
| SaaS (Software-as-a-Service) Products |
| Educational Content & Courses Subscription |
API Required
Example Cases
1) Subscription With Free Trial
Alan subscribe to a gym memberhip with a free trial and monthly subscription of RM 5.00- Create registration fee using Purchases API
- getcheckout_urlfrom response body to be use as a payment link
- getidfrom response body to be use as a token
Note: Alan ‘s card must be validated in order for the token to be usable
- Create monthly subscription using Purchases API
- getidfrom response body to be use as a payment link
- Charge subscription fee id with registration fee id using Charge token API
Example API : …/purchases/monthly_subscription_fee_id/charge/
2) Subscription With Registration Fee
Alan subscribe to a gym memberhip with a registration fee of RM 20.00 and a monthly subscription of RM 5.00- Create registration fee using Purchases API
- getcheckout_urlfrom response body to be use as a payment link
- getidfrom response body to be use as a token
Note: Alan ‘s registration fee must be paid in order for the token to be usable
- Create monthly subscription using Purchases API
- getidfrom response body to be use as a payment link
- Charge subscription fee id with registration fee id using Charge token API
Example API : …/purchases/monthly_subscription_fee_id/charge/
Testing Integration
It’s possible to test-drive all checkouts using a test Purchase. To test a successful payment, you can use the following card numbers:- 4444 3333 2222 1111 - non-3D Secure card
- 5555 5555 5555 4444 - 3D Secure card
- any cardholder name
- any expiry larger or equal to the current month/year
- CVC = 123
FAQ
Frequently asked questions regarding subscription.-
Do CHIP handle the automatic renewal of subscription?
No, CHIP does not handle the automatic renewal. What CHIP offer is the ability to save and charge customer’s saved card. The automatic renewal logic must be implemented on the merchant’s side, for example using a cron job or other scheduling mechanism. -
What happen if I accidentally charge the customer’s card twice?
Once the payment link is paid, any subsequent payment attempt will be blocked. As a result, the likelihood of a double charge issue is extremely low. -
What is the token tied to?
The token is tied tobrand_id -
How the token is referenced?
The token usecustomer_emailas a reference -
Where can I see my customers tokens?
List of tokens per customer can be checked by using List Token API -
How to delete the token?
Token can be deleted by using Delete Token API