Implement Subscriptions
UI Implementation
- Install the latest Coinflow packages.
- To use the provided purchase page to buy a subscription, the
merchantIdandplanCodeneed to be supplied in theCoinflowPurchasecomponent. - The subscription cost and information will automatically populate the form.

How the CoinflowPurchase component looks configured for an existing subscription plan.
Subscribing to a Plan
The customer will need to provide a payment method, confirm the purchase, and then subscription purchase will be created. Upon creation of the subscription, the first payment will be drawn (if payment fails, subscription creation fails). The subscription will then be active and schedule payments as defined.
API Implementation
1.Create a subscription plan (This is for the merchant only)
2.Get All Available Subscription Plans Available for purchase by a customer
4. Enable an end user to make a purchase for a subscription plan with a new credit card
Note: You will need to tokenize the card, similar to how you’ve done in card checkouts.
5. Enable an end user to cancel their subscription
Testing
To test credit card purchases for a subscription, please see our testing credit card purchase documentation.

