SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member DaMarkov's Avatar
    Join Date
    Jun 2011
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question PayPal: any way a repeated donations can be set up, using amount of visitors choice?

    I'm trying to figure out if there's a way to set up a PayPal subscription button, where visitors would be able to "subscribe" to donate an amount of their own choosing each month.

    I know this can be set up for fix amount donation/subscriptions, but I can't seem to find a way for repeating subscriptions where visitors would be able to enter their own amount.

    Any ideas? Thanks.

  2. #2
    SitePoint Enthusiast
    Join Date
    Feb 2012
    Location
    Sacramento, CA, USA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could do this using a bit of JavaScript on the client side. I did something similar on this site.

    I would expose a text input and a button to the user. They would fill in the value they want to pay on the subscription, then when they hit the button your script would fill in the appropriate hidden field(s) on the PayPal form. In this case you might change the "a3" field's value to match what the user had typed. Then your script could submit the form, which posts the updated amount over to PayPal.

    Once you have that down, just expose a few more fields for the user's info (name, etc.) and do the same thing on the hidden fields before submitting the form.

    Make sense?

  3. #3
    Non-Member
    Join Date
    Feb 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good Idea to implement. Lot of marketing Tycoons here. Go on friend. All the best.

  4. #4
    SitePoint Member DaMarkov's Avatar
    Join Date
    Jun 2011
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! Much appreciated! I'll ask a few colleagues if they can help me set this up using the instructions you've provided.

  5. #5
    SitePoint Mentor bronze trophy
    John_Betong's Avatar
    Join Date
    Aug 2005
    Location
    City of Angels
    Posts
    1,826
    Mentioned
    73 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by DaMarkov View Post
    Thanks! Much appreciated! I'll ask a few colleagues if they can help me set this up using the instructions you've provided.
    I have just reintroduced a subscription button to my site which was previously withdrawn due to lack of support

    Pledge any amount

    Please note that the Pledge link is very, very likely to change in the near future.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •