Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29
  1. #11
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #12
    Join Date
    Apr 2008
    Posts
    71
    Plugin Contributions
    0

    Default 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!
    Last edited by Opal; 16 Nov 2009 at 05:46 PM.

  3. #13
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Block Customers' Paypal Email Address?

    Right. If their payer ID is "ABC1234567890" then you'd use:
    Code:
        if ($response['PAYERID'] == 'ABC1234567890') {
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #14
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #15
    Join Date
    Apr 2008
    Posts
    71
    Plugin Contributions
    0

    Default 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!

  6. #16
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #17
    Join Date
    Apr 2008
    Posts
    71
    Plugin Contributions
    0

    Default Re: Block Customers' Paypal Email Address?

    Thank you

    I happily made a donation for your help, wish it could be more but maybe after xmas I can do more lol!

  8. #18
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Block Customers' Paypal Email Address?

    Thanks! Wishing you well with your holiday sales.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #19
    Join Date
    Apr 2008
    Posts
    71
    Plugin Contributions
    0

    Default Re: Block Customers' Paypal Email Address?

    You're welcome and thank you!

    I was just wondering if I needed to add another payer ID how would I add it to the code?

  10. #20
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Block Customers' Paypal Email Address?

    Quote Originally Posted by Opal View Post
    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') {
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Update Customers Email Address
    By ricangem in forum Managing Customers and Orders
    Replies: 1
    Last Post: 4 May 2011, 05:01 PM
  2. Block customers by IP address?
    By muteyaar in forum General Questions
    Replies: 1
    Last Post: 10 Mar 2011, 06:35 AM
  3. Ban Customers (by email address).
    By TheOracle in forum All Other Contributions/Addons
    Replies: 52
    Last Post: 19 Nov 2009, 04:49 PM
  4. PayPal verified address in PayPal email and transaction record
    By dealbyethan.com in forum PayPal Website Payments Pro support
    Replies: 0
    Last Post: 13 Oct 2008, 02:11 PM
  5. Email to Customers - CC/BCC address
    By ARRSE in forum General Questions
    Replies: 6
    Last Post: 24 Apr 2007, 09:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR