Disable pay with credit card - paypal

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.

Related

Authorize and Capture for Subscriptions

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>

remove Paypal create account in debit or credit card section

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.

Unable to test sandbox accounts on paypal

<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"

How to capture form info with PayPal transaction

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

Error Detected - Paypal

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.