<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="6DHWKYCKBGXFS">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHosted">
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
I have been trying it for weeks but no luck. what i have done so far is created two accounts on developer site then with business account i created donate button whose code is above.I pasted it on plain html page and it directed me to
https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=bnXFinACSxCb1ODnXhGUvOIt9PAh_P89ZBULZpUJW...
where i entered my buyer account but i dont know why its keep sayiing "Please check your emai and password" . i have checked it hundred of times but i dont know why its not accepting this.Please help me , I am in big trouble.
Finaly after trying for weeks I found the solutuion.The four point in this https://developer.paypal.com/docs/classic/paypal-payments-standard/ht_test-pps-buttons/ tutorial is wrong. You dont create a button like that for testing purpose but rather go to profile>selling tools>create new button . Probably it will be helpful for someone..
If you are trying to tested this with your test buyer accounts, your seller accounts also needs to be set up in the sandbox. The above code is pointing to the live site "www.paypal.com", if you are trying to use your test seller and buyer accounts, the URL needs to be "www.sandbox.paypal.com"
Related
I'm a very newbie developer, and I'm having a very hard time understanding the documentation.
Basically, my client is offering a subscription, but wants to be able to decide whether or to take the charge from his clients.
I was attempting to put in authorize and capture in a subscription button, but it is going through automatically when I test it out. (I put in paymentaction=authorization)- it worked fine when I created a buy now button, so is it subscription based...?
I've been using the Paypal button creator: Here's the output code I got...
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="C6U8GKAAHAHF8">
<input type="image" src="https://www.sandbox.paypal.com/en_GB/i/btn/btn_subscribe_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.sandbox.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
I'm offering a backlink building service and I'd like to just offer a simple form on my site where the user can enter their:
Website they want me to rank
And 1-2 keywords they're looking to rank for
And then a simple PayPal button that directs them to where they can pay.
Does anyone have any resources they can point me to to capture that information, maybe even their PayPal email, once they make a purchase?
Are there any plugins or code anyone knows of that I can just swipe and modify with my form fields?
I know this has to be possible I just don't know what to type into Google to get more information.
Thanks in advance.
Basically there are two parameters that comes to my mind that you could use custom & no_note
custom is a parameter that you can use to collect the Website they want me to rank information and regarding keywords you can use no_note(but this has to be entered by the buyer in PayPal checkout page.Alternaltively, you can use `custom' parameter to append both the information and then make a payment.
Sample Form Code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="XXX#gmail.com">
<input type="hidden" name="item_name" value="test">
<input type="hidden" name="amount" value="1.00">
<input type="hidden" name="custom" value="website_rank+keywords">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="paymentaction" value="sale">
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
Now, how to get this information after the buyer completes the
payment?
Use Instant Payment notification. and look at the IPN variables that you can get back
Regarding paypal buttons, I see plenty of stuff online that talks about creating a custom button to use in place in lieu of their official buttons.
What if I skipped using a button entirely and just used its alt tag to say what the link is?
<form target="_blank" action="https://www.paypal.com/cgibin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="item_name" value="Blah blah blah">
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="no_note" value="1" />
<input class="alty" type="image" src="" border="0" name="submit" alt="Donation to specific project">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
Just realized this doesn't work in Chrome, but it does work in FF. I'm just asking, say it did work in all browsers, would this be allowed, ie, just using alt tags to make it clear that it's a link to paypal's page?
Are there are workarounds that allows you to use a word/sentence that's a link to paypal's page, short of using paypal's email link?
In case anyone asks why I'm not using paypal's email link - it's because I cannot change the email address for that that link, whereas if I use code as in above, I can change the email address so the notification can go the the right person. (there are multiple programs in one department).
Advice?
Yes you can do it in this way also . You are allowed to use your link or images to direct to the PayPal checkout page .
And as far as the above code is concerned its working fine in chrome too , just tested it out .
I can't understand why I get this annoying error message when I test out the paypal button in sandbox test site.
Error Detected
PayPal cannot process this transaction because of a problem with the seller's website. Please contact the seller directly to resolve this problem.
I've tried using different test accounts and I get the same thing.
Here are the codes for the paypal button:
echo 'form action="https://www.sandbox..../cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="FDN9DZRLVBQRL">
<input type="image" src="https://www.sandbox....scribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.sandbox....i/scr/pixel.gif" width="1" height="1">
</form>';
You're using a hosted button, so you need to make sure that it was created from (and still exists in) the account you're testing with.
If you're testing with the sandbox you need to create the button from that sandbox account in order for it to work.
Keep in mind that is only the case when working with hosted buttons.
Replace the form action with this:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
You are pointing to Sandbox endpoint, where the hosted button belongs to LIVE account.
I need to implement a method where we can allow a clients customer to make a payment to the client via our website - all of which will be setup via our custom CMS.
Our initial plan was to use the following form script to generate a transaction and ask the client to add a return address to our website.
<form name="_xclick" action="https://www.paypal.com/uk/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="someone#someon.com">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="item_name" value="2 x sessions">
<input type="hidden" name="amount" value="50">
<input type="image" class="btn btn-default nom paypalBtn" src="" border="0" name="submit" alt="£50">
</form>
This would potentially work fine - as we could dynamically add the value, business email and item name. Though we are worried that any web savvy person could simply inspect the form in a browser and change the payment value to a more pleasing figure! So we feel we need a better solution.
Does anyone have any suggestions for a cleaner solution?
Log into your PayPal account, click on Merchant Services at the top of the page and then click one Create Payment Buttons for your website. When you create buttons on PayPal they are hosted and secure.