I've a donation button on my site, but it gives the choice to donate every month...etc,
but when the recurring payment is done the custom var that was passed the first time do not exist anymore, and this custom var is crucial for my system.
I would like either keeping the custom var, or remove the recurring option from paypal donation page
In order to remove the recurring feature from the donate button, you would need to go in step 2 of the button creation on PayPal and uncheck the box to save the button on PayPal. Then once you hit create button, click "remove code protection" above the HTML code. You can then add the following line of code to remove the recurring feature:
<input type="hidden" name="amount" value="0">
Related
I've set up an order page with Add to Cart buttons and a standard View Cart function.
I've set up a buyer and seller account in sandbox.
I've tested the payment process and all works fine.
I then activated the Return URL option in my seller's profile payment options and entered the URL that I want to send the user to (which should then process the PDT and give the user some feedback).
I've of course entered the token generated after setting up Return URL in my
script.
However, once a transaction is done I get first a confirmation page from PayPal with a manual "go back to seller's page" link. And it then automatically redirects me to the sandbox home page (logged out). This also happens when clicking on the manual link to go back to the seller's page.
What am I not getting? I appreciate any help on this. Lost so much time with that already...
Thanks,
Sam
edit: adding these two lines to my form actually solved my problem:
<input type="hidden" name="return" value="your return url">
<input type="hidden" name="cancel_return" value="your cancel url">
I want my users to be able to choose the amount before clicking on the "pay now" PayPal button. On the page to build such button on PayPal website, one can add custom fields and call it "amount", but the value entered in this field will not be taken into account when users click the button: they are directed to PayPal website to validate payment, however the amount is zero.
How to create an amount field so that when the user enters a value X and clicks the button, this value X appears as the amount on PayPal payment page?
If you post a sample of the button code you're working with I could adjust it for you accordingly. It sounds like you just need to set something like the following in your code.
<input type="text" name="amount" value="" />
That would make a text field display so the person could enter the amount they want, and since the name is amount, when posted to PayPal it would see it the same as if it were a hidden field.
The easiest way to allow your customers to choose the payment amount is to simply leave the amount field blank when creating the button in the button factory. No custom fields are necessary. The customer will be prompted to enter an "item Price on the hosted checkout page and that is what the customer will pay unless you have profile tax or shipping enabled.
I want to create a simple form where customers can upload a pdf and then press a pay now PayPal button. Upon opening the page (or upload), a random reference number will be assigned to the button. Once the PayPal "Pay now" button is pushed, the reference number should be passed through to me alongside the payment info such as mailing address, etc.
How do I create a customized button that takes a random number as a reference into the payment info? Thanks for any help.
The custom parameter does this with PayPal.
I.e. <input type="hidden" name="custom" value="aaaaaaaaaaa111111222222bbbbbb">.
See also this link for information on how this applies to PayPal IPN.
I have my website and opened a paypal business account. I have setup the payment links using wishlist member and created the paypal buttons that I need to add to my website.
Now, I have the Subscribe buttons ready and they link to paypal...my problem is that I need to test it and not pay for it myself.
I DID open a sandbox paypal account too but the email and password given in paypal sanbox doesn't work on paypal and the Paypal Button code is not linking to the sandbox...it links to actual paypal.
How I'm I supposed to test these buttons if they link to paypal and not to sandbox?
How does this work? Do I need to create new buttons at Sandbox and if yes...then I'm not really testing my all ready setup right?
Can anyone clarify this?
Yes, you are correct in thinking you need to re-create these buttons under your Sandbox account in order to simulate payment without actually paying. Your Sandbox account will generate the button code with the correct sandbox links.
Moreover, when testing your Sandbox buttons, you need to use your Sandbox test account credentials to simulate the payment. Do not use actual credit card information, regardless of whether PayPal allows it or not, you're just testing.
Note: The only differences between your actual button code and Sandbox button code should only be the form action and button identifier.
Such as,
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
// versus
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
AND
<input type="hidden" name="hosted_button_id" value="FLVPFBWCKGND8"> // Actual
// versus
<input type="hidden" name="hosted_button_id" value="SNDBXGENERATD"> // Sandbox
Or, if you're not using 'hosted buttons' (the details aren't stored with PayPal):
<input type="hidden" name="business" value="your-real#email.tld"> // Actual
// versus
<input type="hidden" name="business" value="your-sandbox#email.tld"> // Sandbox
The easiest way to identify whether you're using hosted buttons or not, is to see if you've got "hosted_button_id" in your form code. If you do, you're using hosted buttons.
For a better understanding/explanation of how Sandbox is setup/integrated: Testing PayPal Website Features, or Sandbox User Guide
I am building a web site for an organisation. The organisation can create as many programs as they want.
Each program should have a paypal donate button. when creating a program, a paypal donate button can be inserted automatically (something like {donate_button: label } ).
i want to keep track of each program donation fees.
So i need somehow to know what program a donor donate to so then i can make a report about fee for each program.
Am not so sure how to get this done properly. is it possible to add some parameters in the donate paypal button dynamically ? if posible , is there any problem regarding to security ?
Can paypal donate button be created dynamically ?
I am very appreciated for all of you .
Thanks
Am sorry for my bad English.
I'd suggest looking at Instant Payment Notification (IPN) and 'custom' to pass the name of the organisation on to PayPal.
Simply include the following in your existing button code
<input type="hidden" name="notify_url" value="link to IPN script">
<input type="hidden" name="custom" value="name of organisation / other unique identifier">
and read the IPN POST for the 'custom' parameter when it comes through.
There's additional documentation and some sample code at https://www.paypal.com/ipn