I want to implement subscription-based website so one user can subscribe to multiple people with various subscription plans e.g. subscriber can subscribe to person A for $10 and to person B for $30. How do I do that in PayPal? By having one subscription and then increase or decrease the amount? Or to create multiple subscriptions for that one user?
I think paypal can support multiple subscriptions for one user. If you are planning for dynamic website then set price of price of person from back end and use subscription form with desired value for each person or pass value to this form according to person detail and submit by help of Javascript so user can subscribe according to his choice. <form action="<?php echo PAYPAL_URL; ?>" method="post"> <!-- Identify your business so that you can collect the payments --> <input type="hidden" name="business" value="<?php echo PAYPAL_ID; ?>"> <!-- Specify a subscriptions button. --> <input type="hidden" name="cmd" value="_xclick-subscriptions"> <!-- Specify details about the subscription that buyers will purchase --> <input type="hidden" name="item_name" value="<?php echo $itemName; ?>"> <input type="hidden" name="item_number" value="<?php echo $itemNumber; ?>"> <input type="hidden" name="currency_code" value="<?php echo PAYPAL_CURRENCY; ?>"> <input type="hidden" name="a3" id="paypalAmt" value="<?php echo $itemPrice; ?>"> <input type="hidden" name="p3" id="paypalValid" value="1"> <input type="hidden" name="t3" value="M"> <!-- Custom variable user ID --> <input type="hidden" name="custom" value="<?php echo $loggedInUserID; ?>"> <!-- Specify urls --> <input type="hidden" name="cancel_return" value="<?php echo PAYPAL_CANCEL_URL; ?>"> <input type="hidden" name="return" value="<?php echo PAYPAL_RETURN_URL; ?>"> <input type="hidden" name="notify_url" value="<?php echo PAYPAL_NOTIFY_URL; ?>"> <!-- Display the payment button --> <input class="buy-btn" type="submit" value="Buy Subscription"> </form> PHP: Hope this will help you.