Use case


Your customer has purchased subscription in the past. Their order fails because the card that has been saved for billing has expired. We are working on releasing card management in upcoming releases of the plugin.


For the WooThemes Peach payments plugin, please see how to achieve this below:



Two options available to allow the customer to add a new card and continue their subscription with your business :


 


OPTION 1 - Customer initiated 



  1. Customer can purchase a new subscription and checkout with the new card details.

  2. Customer or admin can then cancel the old order

  3. Customer can also delete the old card from "My Account"


 



OPTION 2 - Admin initiated (less customer involvement)



  1. Once a customer's card expires, the admin can search in the wordpress subscriptions for the customer's subscription order. (Woocommerce --> subscriptions)

  2. Click on the subscription order ID to edit the customer's subscription.

  3. Go to the Subscriptions Actions panel at the right corner of the page

  4. From the drop down, select "create pending renewal order"

  5. This will put the subscription on hold and will offer a "pay" option next the the subscription in "My Account" for the customer to checkout with the new card.


 


Please check to make sure the customer's order metadata is updated with the customer's new stored card token 


Install https://wordpress.org/plugins/show-hidden-post-meta/


it will allow you to update the hidden meta from the wordpress backend - please be careful when editing this information.



Log into the Peach Payment BIP and search for the customer's order (Please be sure to select the customer's NEW ORDER since this will have the new stored card token (The token is the unique ID for the customer's RG transaction - their stored card token)


 


The below custom meta data needs to store the unique ID of the RG transaction 

_peach_payment_token (if available)
_peach_subscription_payment_method


You may need to add this to both the parent order and the original subscription order which stores this information


Additional info here :


WooCommerce subscriptions renewal workflow


Subscriptions store manager guide