1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Multiple subscriptions per user

Discussion in 'PayPal' started by Kuna, Aug 27, 2021.

  1. #1
    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?
     
    Kuna, Aug 27, 2021 IP
  2. seomanualsubmission

    seomanualsubmission Well-Known Member

    Messages:
    904
    Likes Received:
    128
    Best Answers:
    4
    Trophy Points:
    165
    #2
    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.
     
    seomanualsubmission, Aug 27, 2021 IP
  3. Jeremy18322

    Jeremy18322 Peon

    Messages:
    6
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    1
    #3
    wow thanks
     
    Jeremy18322, Sep 3, 2021 IP