Bit Off Topic - PayPal Variable...

User 2744602 Photo


Registered User
162 posts

Hi all :)

Please, does anybody have a url or some info that is current, they can point me at on how to generate a PayPal Variable Payment Button? for example, I send an Invoice, the person uses the web store to pay the invoice by inserting the $ value and invoice info.

I have been looking online and found a lot of OLD stuff is there but nothing that's 2015/16 seems to be coming up, maybe I am just useless at google :D

Any Help appreciated!!
Cheers
Brett
KISS is the key!
User 2088758 Photo


Senior Advisor
3,106 posts

Hey Brett,

I would contact PayPal themselves and ask their support. I have contacted them a few times they seem to be very helpful.
Taking over the world one website at a time!

Steve Kolish
www.misterwebguy.com

YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
User 187934 Photo


Senior Advisor
20,245 posts

Give this a try.
<form name="input" target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="YOUR BUSINESS NAME">
<input type="hidden" name="item_name" value="ITEM NAME">
<input type="hidden" name="item_number" value="ITEM ID NUMBER">
Other amount: $<input type="text" maxlength="200" style="width:50px;" name="amount" value="10.00"> AUD<br />
<input type="hidden" name="currency_code" value="AUD">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" alt="PayPal - The safer, easier way to pay online!">
</form>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2744602 Photo


Registered User
162 posts

Hi Steve, thanks mate I may have to do that is Erics solutions fails me :) I have had a read of their forums but there's not a whole lot there.

@Eric :) thanks mate I will give that a go and see whats what :)

Cheers
Brett
KISS is the key!
User 2744602 Photo


Registered User
162 posts

Eric, I just did a very quick draft not linked to PayPal and that's letting me enter any amount! Thanks Very much mate!
I will pop back if it all falls over after a full test LOL

Cheers
Brett
KISS is the key!
User 2706435 Photo


Ambassador
444 posts

Have you logged into Paypal's button creation? They have Payment button creation tool, and you need to log into Paypal, and make the buttons there now. I believe old style code works as well, but it may not be secure. I just created a webstore for a club, and I had to log into paypal to get code and store prices there. In the past, I could go to paypal, get code and use it in a website, but this time around, I could only get code if I stored prices into the account. I could have copied and pasted old code from their old website, but I choose to just use the new way. I believe it has something to do with hackers being able to change the price of an item before it gets to Paypal, so maybe the new method only applies to larger Paypal stores where someone is not personally monitoring each sale. I have seen places on the net have code you can paste, but since it was not coming from Paypal themselves, I choose not use it. Paypals seems to officially want you to create and store the buttons from their site, or use their API methods.

Definitely call Paypal to make sure the method you are using fits their API and is OK to use. Buttons can still be altered - for instance, they still only let a drop down list of 10 or so options when using their creation tool, but one can easily expand that with some custom code - in my case, I was not altering the payment price or method, just options.
User 187934 Photo


Senior Advisor
20,245 posts

Hi Bill,
If you look at the code I posted it still needs several variables that are specific to your Paypal account. https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.