Re: Block Customers' Paypal Email Address?
Around line 1786 of your /includes/modules/payment/paypalwpp.php file you have code that looks like the following. Add the additional highlighted code as shown:
Code:
// get the payer_id from the customer's info as returned from PayPal
$_SESSION['paypal_ec_payer_id'] = $response['PAYERID'];
if ($response['PAYERID'] == 'PUT_PAYER_ID_HERE') {
$this->terminateEC('Sorry, your transaction cannot be completed at this time.', true, FILENAME_CHECKOUT_SHIPPING);
}
$gender = '';
And replace PUT_PAYER_ID_HERE with the customers ID you received from PayPal, for the customer for whom you wish to deny payment.
Re: Block Customers' Paypal Email Address?
Just to clarify so I get it right, I replace 'PUT_PAYER_ID_HERE' with their Payer ID which is the 13 digits of letters and numbers, nothing else, just 13 digit Payer ID?
And this code stops them from getting to the checkout?
And thanks again so very much for taking the time to help me out with this! :hug:
Re: Block Customers' Paypal Email Address?
Right. If their payer ID is "ABC1234567890" then you'd use:
Code:
if ($response['PAYERID'] == 'ABC1234567890') {
Re: Block Customers' Paypal Email Address?
Keep in mind that I've not tested this code. But I've no reason to believe it won't work properly.
Also note that you'll have no record of the customer's attempt. They'll just be taken back to the checkout screen, probably even being prompted to login if they haven't already.
Re: Block Customers' Paypal Email Address?
Thank you!!!!!!
I just tested it on myself and it worked a treat!!!
I can't thank you enough! You really do deserve a medal for all you do and all the help you give others! :hug:
Re: Block Customers' Paypal Email Address?
Glad it's working for you.
No medals required ... but if you're able to do something here we'd appreciate it: http://www.zen-cart.com/donate
Re: Block Customers' Paypal Email Address?
Thank you :smile:
I happily made a donation for your help, wish it could be more but maybe after xmas I can do more lol! :wink2:
Re: Block Customers' Paypal Email Address?
Thanks! Wishing you well with your holiday sales.
Re: Block Customers' Paypal Email Address?
You're welcome and thank you! :smile:
I was just wondering if I needed to add another payer ID how would I add it to the code?
Re: Block Customers' Paypal Email Address?
Quote:
Originally Posted by
Opal
I was just wondering if I needed to add another payer ID how would I add it to the code?
Here's an example of 3:
Code:
if ($response['PAYERID'] == 'ABC1234567890' || $response['PAYERID'] == 'AnotherNumber' || $response['PAYERID'] == 'AgainAnotherETC') {