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 .
Related
<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"
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
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.
I know there are many questions like this already on SO but none of their answers are working for me.
I am using the simple button form:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" type="hidden" value="_s-xclick" />
<input type="hidden" name="amount" value="500.00">
<input type="hidden" name="currency_code" value="AUD">
<input name="hosted_button_id" type="hidden" value="XXXXX" />
<input alt="PayPal — The safer, easier way to pay online." name="submit" src="https://www.paypalobjects.com/en_AU/i/btn/btn_paynowCC_LG.gif" type="image" />
<img src="https://www.paypalobjects.com/en_AU/i/scr/pixel.gif" border="0" alt="" width="1" height="1" />
</form>
But get the error:
The link you have used to enter the PayPal system contains an incorrectly formatted item amount.
From what I've researched it is because the value needs 2 decimal places and no currency symbol. But as you can see I've tried that. Other versions I have tried are:
value=500.00>
value="$500.00">
value="500">
value="500.00">
value='500.00'>
Would anyone know what's going on? Thanks!
OK I think I have solved it.
The issue seems to be I was using a hosted Buy Now button rather then normal buy now button. The only difference I can tell is the line
<input name="hosted_button_id" type="hidden" value="XXXXX" />
After much struggling and 2 useless calls to PayPal I found the button I was meant to use here:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_buynow_buttons#id089UG070BRO
Let me say for the record that the PayPal API documentation is a complete nightmare!
So on my website I have paypal enabled but when the user clicks the "buy now" button I want to shoot an email to the store owner with some information before it redirects to paypal.com. I can't think of how to do this for the life of me because (I don't think) it's ever postedback to my page before it's redirected. Any ideas? It's absolute critical that this email is sent. The page is in asp.net with C#.
The paypal code is:
form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="form1" runat="server">
input type="hidden" name="cmd" value="_xclick" />
input type="hidden" name="lc" value="US" />
input type="hidden" name="item_name" value="Lollipops Gift Baskets Order" />
input type="hidden" id="paypal_amount" runat="server" name="amount" value="56.00" />
input type="hidden" name="currency_code" value="USD" />
input type="hidden" name="button_subtype" value="products" />
input type="hidden" name="tax_rate" value="0.000" />
input type="hidden" id="paypal_shipping" runat="server" name="shipping" value="0.00" />
input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" id="submit1" runat="server" />
img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
/form>
Assuming that form ultimately generates HTML with an action on paypal.com, you won't get a request to your server when they click it. You'd need to do something like:
Send the request to your server, have it send the email and submit the post, or
Use AJAX or similar to make to requests from the browser (which is inherently insecure, so don't even think about doing this with, for instance, an email which says "go ship the lollypops").
If there's a paypal API that allows you to specify a "where to redirect when transaction is complete" address or similar, perhaps you can direct it back to you and send the email then?
I removed the action from my form tag and did all the behind the scenes work I needed to before doing a response.redirect to "https://www.paypal.com/cgi-bin/webscr". It seems to work.