name your own price

faithadvantage
New Community Member

can  create a way for customers to name their own price for a subsription.  I would like this price to auto renew annually

Login to Me Too
1 REPLY 1

PayPal_Frank
Administrator
Administrator

Hi faithadvantage,

 

Welcome! 🙂

 

I hope you found an answer to your question already but if not hopefully this information will help.

 

Right now, the ability for a buyer to enter their own payment amount directly into PayPal checkout is only available for Buy Now and Donation buttons.

 

There is a way to do this using a subscription button but it would involve custom HTML coding on your website to create a text box and assign the value in that text box to the subscription amount variable (a1,a2, or a3).

 

Here's a list of all the subscription button variables:

HTML Variables for Recurring Payments Buttons

 

The main thing you would need to change in the button code is the <input> line for the a3 variable (assuming you don't have any trial periods).  The subscription button would be created as normal but make sure you uncheck "Save Button at PayPal" under Step 2.  Once you see the code, click the "Remove Code Protection" link.  Then you would need to change the button code from something like this:


<input type="hidden" name="a3" value="$5.00">


to something like this:

 

<input type="hidden" name="a3" >

 

You would probably also need to add some text above this box to let customers know they should enter the amount.

 

Your code would need to validate the form to ensure that your client is entering  a valid number for a3.  If that value isn't validated, the client would receive a generic error on the PayPal website.  For example, if the buyer entered a $ sign in that box, it could cause an error.

 

I hope this makes sense. 🙂

 

- Frank

If you see a helpful post, please accept it as a solution or give the author kudos. 🙂 Thanks!
Login to Me Too

Haven't Found your Answer?

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