Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2005
    Posts
    555
    Plugin Contributions
    4

    red flag Disable Payment option if zero order history? Fraud prevention

    Code:
    $this->enabled = (MODULE_XYZS == 'True');
        if (preg_match('SOMETHING HERE)) {
          $this->enabled = false;
        }
    Hello,
    Theres a LOT of credit card Fraud about right now
    Can anyone kindly help with the one line of code above to block a payment module if its the customers first order?
    My humble contributions....
    Info at a Glance Admin, Alternative Header & Improved Whos Online + Currently working on the next!
    If you have to think..... your obviously looking at the admin :)

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,133
    Plugin Contributions
    11

    Default Re: Disable Payment option if zero order history? Fraud prevention

    My humble response....

    You want to block orders from those who have not ordered before?

    Where is fraud appearing? PayPal? some other like Square (They've changed lately)?

    More info please.

  3. #3
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,682
    Plugin Contributions
    9

    Default Re: Disable Payment option if zero order history? Fraud prevention

    Quote Originally Posted by Reesy View Post
    Code:
    $this->enabled = (MODULE_XYZS == 'True');
        if (preg_match('SOMETHING HERE)) {
          $this->enabled = false;
        }
    Hello,
    Theres a LOT of credit card Fraud about right now
    Can anyone kindly help with the one line of code above to block a payment module if its the customers first order?
    PHP Code:
    $this->enabled = (MODULE_XYZS == 'True');

    $numberOrders zen_count_customer_orders();
    if (
    $numberOrders == 0) {
          
    $this->enabled false;

    the method, zen_count_customer_orders, looks at all orders including cancelled orders. if that does not work for you, one might need to create a new function, or do something else.

    hope that helps.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  4. #4
    Join Date
    Mar 2005
    Posts
    555
    Plugin Contributions
    4

    Default Re: Disable Payment option if zero order history? Fraud prevention

    Quote Originally Posted by carlwhat View Post
    PHP Code:
    $this->enabled = (MODULE_XYZS == 'True');

    $numberOrders zen_count_customer_orders();
    if (
    $numberOrders == 0) {
          
    $this->enabled false;

    the method, zen_count_customer_orders, looks at all orders including cancelled orders. if that does not work for you, one might need to create a new function, or do something else.

    hope that helps.
    Great, thanks will give it a go.
    My humble contributions....
    Info at a Glance Admin, Alternative Header & Improved Whos Online + Currently working on the next!
    If you have to think..... your obviously looking at the admin :)

  5. #5
    Join Date
    Mar 2005
    Posts
    555
    Plugin Contributions
    4

    Default Re: Disable Payment option if zero order history? Fraud prevention

    Quote Originally Posted by dbltoe View Post
    My humble response....

    You want to block orders from those who have not ordered before?
    Yep, I want to remove the option to offer a credit card payment option, which will crush all the one off fraudulent orders that receive the goods, then call their credit card a month later saying I didn't order this, the credit card company then refunds them. In Japan cash on delivery is popular, they can choose that.
    My humble contributions....
    Info at a Glance Admin, Alternative Header & Improved Whos Online + Currently working on the next!
    If you have to think..... your obviously looking at the admin :)

 

 

Similar Threads

  1. v154 Disable Check/money order payment option for International orders
    By stug69 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 6 Jul 2015, 12:16 AM

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