To cancel a subscription you would do the following:
- Cancel the subscription in your back-end i.e. subscription management system
- De-register a stored card (if required) i.e. delete the card from our vault.
Deleting a stored card from the Peach Payments vault is relatively easy.
We recommend that merchants provide users with the facility to delete stored cards at any time. A simple implementation is to provide a delete button next to the stored card display on the user account management page.
If a subscription is cancelled / user clicks delete button:
- Execute a transactions with the payment code set to CC.DR
- Send the stored TOKEN (UniqueID from the original RG transaction) in the IDENTIFICATION.REFERENCEID field
Sample Request (you would send in XML):
<Security sender="123a456b789c123d456e789f012g345" />
<Transaction mode="LIVE" response="SYNC" channel="678a456b789c123d456e789f012g432">
<User login="421a456b789c123d456e789f012g098" pwd="56b789c123d456e789f"/>