Help understanding flow of subscriptions in php

viraladm
Contributor
Contributor

Hopefully I am asking this in the correct place....

I am trying to understand the flow of payments. 

Basically I need to understand how I match customers to subscriptions. 

Is it as simple as each user has a plan generated for them with a unique id? Then the status of the plan can be matched to the user on successful payment?

Seems I can get a $plan->id when users first begins a checkout process.

An actual $subscription->id doesn't seem to exist until after successful payment has been made. 

So would the flow go something like: 

$plan->id matches to user before payment.
$subscription->id can be matches to $plan->id on first payment.
Then $subscription->id matches $subscription->id for each recurring payment until canceled? 

Or am I missing something? How do I match the user who initiates a plan to the successful payment and then match recurring payments for from that point on? 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.