Skip to content
Remco Tolsma edited this page Mar 7, 2018 · 3 revisions

Step 1 - Is payment a first payment for a subscription?

A new payment can trigger the creation of a new subscription of the payment contains information about a subscription.

Step 2 - What is the subscription default status?

When the payment contains all the information to create a new subscription it will be created. By default the subscription meta status will be null and the post status will be subscr_pending.

Meta status Post status
null 'subscr_pending'

Step 3 - How to handle first payment status response?

Payment meta status Payment post status » Subscription meta status Subscription post status
'Success' 'payment_completed' »
'Cancelled' 'payment_cancelled' »
'Expired' 'payment_expired' »
'Failure' 'payment_failed' »
'Open' 'payment_pending' »
'Active' ? »
'Completed' ? »

Step 4 - How to handle follow-up payments status response?

Payment meta status Payment post status » Subscription meta status Subscription post status
'Success' 'payment_completed' »
'Cancelled' 'payment_cancelled' »
'Expired' 'payment_expired' »
'Failure' 'payment_failed' »
'Open' 'payment_pending' »
'Active' ? »
'Completed' ? »