remove Paypal create account in debit or credit card section - paypal

I'm building a website and want to add "Paypal" payment method
so I add this Html Form to site page
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="paypal">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<input type="hidden" name="business" value="paypalemail#gmail.com">
<input type="hidden" name="item_name" value="My Cart Item 1">
<input type="hidden" name="amount" value="10.00">
<input type="hidden" name="shopping_url" value="http://localhost:2718/school/paymeant.aspx">
<input type="hidden" name="return" value="http://localhost:2718/school/paymeant.aspx?sucess=1">
<input type="hidden" name="cancel_return" value="http://localhost:2718/school/paymeant.aspx?faile=1">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
all is going ok expect when user want to pay me throw credit or master or visa card
then paypal ask them to create account to pay throw that card how can i remove
create account option in debit or credit card section

The method you are using for adding a PayPal button to your is called Payments Standard. This integration method is quick and easy, but it has some limitations.
What you're after, where users can just pay with a credit card without logging in or creating an account, is called "guest checkout". Unfortunately, with Payments Standard guest checkout relies on browser based cookies. As such, if anybody has ever signed in to a PayPal account with that particular browser the system is going to assume you'll be using PayPal, so it sort of hides away the guest checkout option. You should still see a link that allows you to get there, but it's very easy to miss.
If you were to try that in a fresh browser or clear the cache/cookies in your current browser you would probably see the guest checkout experience.
If you want to force the guest checkout experience at all times regardless of browser cookies you'll need to use the Express Checkout API instead of Payments Standard. This will require the use of a programming language like PHP.
Assuming you are familiar with that, you could use this PHP PayPal SDK to easily integrate Express Checkout. It comes with free samples that would probably be enough to get you going.
Alternatively, if you are using a CMS of some kind there is probably a plugin available that would make Express Checkout integration easy for you. For example, if you're using WooCommerce, by chance, I would recommend taking a look at PayPal for WooCommerce.

Related

Disable pay with credit card

I've got Buy Now Button:
<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="9HPJM3Z83ZCRS">
<input type="image" src="https://www.sandbox.paypal.com/en_GB/i/btn/btn_buynow_LG.gif" 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>
But i dont want to let users pay with credit card, becouse i need to check their paypal email to prevent buying same thing twice. Is is possible?
Within your PayPal account profile there is an option "PayPal Account Optional" that you need to disable in order to force all buyers to use a PayPal account.
Depending on the version of PayPal you're on, it will be in Payment Receiving Preferences, Website Payment Preferences, or something like that. Just look around in your profile settings and you should be able to find it pretty easily.

Integrating PayPal Sandbox to Your Web Application

I have a web application and I want to integrate the PayPal Sandox to it.
What are the steps to do so?
Since PayPal's integration guides can be unclear for beginners and other online tutorials can be too long for a simple checkout implementation, this Q&A aims to integrate the PayPal Sandbox to your web application quickly and easily. No external libraries or other downloads required.
STEP 1: Create a PayPal Sandbox Account. Follow this guide for test account creation.
STEP 2: Copy below sample HTML code for a basic Buy Now button (Single-Item Payment only):
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="payments#yourbusiness.com">
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="Your Product">
<input type="hidden" name="amount" value="25.00">
<input type="hidden" name="currency_code" value="USD">
<!-- Specify checkout options. -->
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://www.yoursite.com/paymentsuccessful.hmtl">
<input type="hidden" name="cancel_return" value="http://www.yoursite.com/paymentcancelled.hmtl">
<!-- Display the payment button. -->
<input type="image" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif">
</form>
form action - value is https://www.sandbox.paypal.com/cgi-bin/webscr, removing "sandbox"
means you are using the live PayPal website
business - does not have to be a real email, text displayed at the upper-left portion of the PayPal checkout page
cmd - _xclick means the button clicked was a Buy Now button
item_name - name of your product
amount - price of your product
currency_code - read here for supported values
no_note - do not prompt buyers to include a note with their payments (0 - false, 1 - true)
no_shipping - do not prompt buyers for a shipping address (0 - prompt but not required, 1 - do not prompt, 2 - prompt and require)
return - URL to which PayPal redirects the buyer's browser after they complete their payment
cancel_return - URL to which PayPal redirects the buyer's browser if they cancel checkout before completing their payment
Output:
References:
Testing Classic API Calls (recommended reading)
Single-Item Payments – Buy Now Buttons (more options available)
HTML Variables for Displaying PayPal Checkout Pages (more options available)

Paypal IPN won't work?

I have been trying to make a working ipn for my website. Here's the code:
Have tested this through real PayPal.
My Button:
<form method="post" name="paypalConfirm" action="http://www.paypal.com/cgi-bin/webscr">
<input type="hidden" name="rm" value="2"/>
<input type="hidden" name="cmd" value="_xclick"/>
<input type="hidden" name="custom" value="username">
<input type="hidden" name="business" value="email"/>
<input type="hidden" name="item_name" value="Item"/>
<input type="hidden" name="amount" value="0.02"/>
<input type="image" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
I have tested these several times but it just won't work. If anybody could help me, please do.
You need to make sure you have IPN configured in the PayPal account that is receiving the payment.
If you do have it configured and you don't think you're getting an IPN check the IPN History in your PayPal account. This will show you whether or not anything is getting sent and what response your server is sending back. It's possible the IPN's are getting sent but your script is simply failing.
You'll need to check your web server logs to see what the error is if that's the case, or what I like to do is setup a basic HTML form with the action set to my IPN URL. I include hidden fields that match what I expect to get from an IPN, and then I load this in a browser and submit it. This allows me to see the result on screen which helps with debugging. Once it's all working there you know it'll work when PayPal sends it.
Keep in mind if testing that way the IPN will not verify with PayPal since the data didn't come from them, so you'll need to make sure your code logic handles that accordingly.

PayPal Buy Now button on my site with redirection issue

I must be going crazy, or I'm completely lost when it comes to understanding what is doable when it comes to PayPal buttons on my site - either way I must apologise if this seems obtuse.
I'm building a custom CMS for my clients, and I'm trying to let them utilize PayPal on their sites by simply entering in either their merchant ID, or their PayPal e-mail address, and then let CMS will do the rest. Ideally:
Client enters merchant ID / PayPal e-mail address into CMS backend
CMS generates "Buy Now" button for client's buyers to click on
Buyer pays on PayPal's site
Buyer gets redirected to client's site
My headache disappears
This seems to be easier said than done. I've read the developer documentation on generating your own buttons, and used that Javascript-based button generator to create a button with an IPN callback, but that's not going to redirect the buyers back to my clients' websites.
Thus my questions: is it at all possible to achieve what I'm looking to do with just my clients' merchant ID's? Is it possible to do it without them having to configure anything additional in their PayPal account settings to avoid set-up issues? Should I be looking at a different PayPal processing mechanism instead of the "Buy Now" button?
I should probably mention that I have a free PayPal account, not a Premium or Business account, but that should be irrelevant to this situation as it's not me that's trying to get paid.
Thanks in advance, and any help is GREATLY appreciated!
create a hidden field named 'return' in your form and put your return URL as the 'value'
A thank you to Billy for his answer, and while researching this topic some more, I've discovered that what I'm looking to do CANNOT be done with the current payment standards buttons on a standard free PayPal account. You can't achieve automatic redirection back to your site from PayPal with the Buy Now button.
As Billy mentioned, you can add return URLs that will give the user the option to click on a link that will return them to your site afterwards (PayPal will add these links to their side of operations themselves). To do this you would need to add the appropriate hidden fields to your PayPal form.
This worked for me:
<form method="post" action="https://www.paypal.com/cgi-bin/webscr">
<input type="hidden" name="button" value="buynow">
<input type="hidden" name="item_name" value="Item 1">
<input type="hidden" name="amount" value="1234.56">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="env" value="www">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="return" value="http://www.site.com/success">
<input type="hidden" name="cancel_return" value="http://www.site.com/error">
<input type="hidden" name="business" value="your#email.com">
</form>
I hope this helps someone avoid headache and unnecessary documentation scouring!

How to create a Paypal Buy Now button for a mobile checkout from a mobile website?

I have a mobile web page with a Paypal Buy Now button and I want it to send users to a mobile friendly Paypal checkout. I'm getting really confused with documentation about for checkouts in mobile apps, but all I want is a mobile browser checkout. Can I just add an extra param to a buy now button? I've been looking at this but I think perhaps this is for mobile apps. http://code.google.com/p/paypalmobile/
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="xxxxxxxxxxx">
<input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
I've not found a way to use a Buy It Now button but have managed to get it working by utilising the Paypal SetExpressCheckout method in the Express Checkout API (https://api-3t.paypal.com/nvp). This returns a Token which you use to redirect to Paypal
https://www.paypal.com/webscr?cmd=_express-checkout&token=RETURNED_TOKEN
If you use Express Checkout Paypal automatically uses mobile checked when accessed by a mobile.
https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_ExpressCheckout_IntegrationGuide.pdf
for mobile billing please change the url with cmd hidden
header('location:https://mobile.paypal.com/wc?t='.$querystring);
it is device recognize URL when u are open in dektop it differnt look and mobile showing like express checkout on top showing it's amount