Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Posts
    2
    Plugin Contributions
    0

    Default Paypal Direct Payment - Order Still Completes After Failure - postosc

    I have installed the Paypal Direct Payment Module v1.2 from "http://www.postosc.com/" in Zen Cart v1.3.7 and I am having an issue with the orders completing after a failure response is returned from Paypal.

    The orders are completing when the correct information is entered and sending a failure response when incorrect information is entered, but when a failure comes back to Zen Cart it is not being caught. The customer ends up going to the confirmation page and completing their order without having paid.

    I have the debug feature turned on in the module so I am able to see all the information regarding each order and the failures appear to be comming back correctly from Paypal, but Zen Cart seems just to be moving forward. This poses a huge issue for my client and if anyone else is experiencing this issue or has some insight into a solution it would be a great help.

    Looking through the Paypal Direct Payment Module (paypal_dp.php) and the functions after_order_create($insert_id) and before_process(). At the end of before_process() is the area which is setting the information about the order errors and it is listed below. Something is happening in this section where a transaction id is being generated even when the order fails and I do not know yet how to fix it.

    if(Services_PayPal::isError($response)) {
    if (MODULE_PAYMENT_PAYPAL_DP_FAILURE_EMAIL == 'No') {
    $messageStack->add_session('checkout_payment', MODULE_PAYMENT_PAYPAL_DP_TEXT_PROCESS_ERROR . '<!-- ['.$this->code.'] -->', 'error');
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_PAYPAL_DP_TEXT_PROCESS_ERROR), 'SSL', true, false));
    } else {
    $this->order_status = MODULE_PAYMENT_PAYPAL_DP_FAILURE_STATUS;
    }
    } elseif($response->getAck() != 'Success' && $response->getAck() != 'SuccessWithWarning') {
    if (MODULE_PAYMENT_PAYPAL_DP_FAILURE_EMAIL == 'No') {
    $messageStack->add_session('checkout_payment', MODULE_PAYMENT_PAYPAL_DP_TEXT_DECLINED_MESSAGE . '<!-- ['.$this->code.'] -->', 'error');
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_PAYPAL_DP_TEXT_DECLINED_MESSAGE), 'SSL', true, false));
    } else {
    $this->order_status = MODULE_PAYMENT_PAYPAL_DP_FAILURE_STATUS;
    }
    } else {
    //$details = $response->getDoDirectPaymentResponseDetails();
    $this->trans_id = $response->getTransactionID();
    $this->avs = $response->getAVSCode();
    $this->cvv2 = $response->getCVV2Code();
    }

    Searches on the internet and within the forum have yielded no results for my particular problem. All issues I have uncovered have to do with Paypal communication and error codes.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Paypal Direct Payment - Order Still Completes After Failure

    You are going to have to talk to the folks you got the module from as it is NOT supported by Zen Cart. Sorry.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Apr 2005
    Location
    Calera, OK
    Posts
    76
    Plugin Contributions
    1

    Default Re: Paypal Direct Payment - Order Still Completes After Failure

    Quote Originally Posted by jaunt View Post
    I have installed the Paypal Direct Payment Module v1.2 from "http://www.postosc.com/" in Zen Cart v1.3.7 and I am having an issue with the orders completing after a failure response is returned from Paypal.

    The orders are completing when the correct information is entered and sending a failure response when incorrect information is entered, but when a failure comes back to Zen Cart it is not being caught. The customer ends up going to the confirmation page and completing their order without having paid.
    That module works great for me. Are you SURE you did not turn on, in the module -> payments screen for direct payment, "manual processing if failed"? If you set that to yes, it will do what you say.

  4. #4
    Join Date
    Jun 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: Paypal Direct Payment - Order Still Completes After Failure - postosc

    Yes you are correct that is how the module was supposed to act and I did not understand that from the option in the Admin. I thought it would just send an email after each failed attempt then return the user to the payment page. Once i more thoroughly read the code I figured out how to make it go back to the payment page after the email was sent. You can just copy the code from the "if (MODULE_PAYMENT_PAYPAL_DP_FAILURE_EMAIL == 'No')" section to the "else" section and you will get an email and a redirect to the payment page.

    The client did not want to have to contact the user in the case of a failed payment, but they wanted an email for failed transactions.

  5. #5
    Join Date
    Apr 2005
    Location
    Calera, OK
    Posts
    76
    Plugin Contributions
    1

    Default Re: Paypal Direct Payment - Order Still Completes After Failure - postosc

    Yes, I know it was an older message. So, did the client use the module? We are, and love it. Are they happy?

 

 

Similar Threads

  1. user is returned to checkout after payment, and cart still holds the order
    By keneso in forum PayPal Express Checkout support
    Replies: 10
    Last Post: 11 Aug 2011, 09:33 AM
  2. shipping api processing after order completes?
    By FrilansReklam in forum Addon Shipping Modules
    Replies: 0
    Last Post: 21 Jul 2011, 05:01 PM
  3. Paypal payment not being received but order completes
    By vito in forum PayPal Express Checkout support
    Replies: 6
    Last Post: 7 Dec 2008, 11:47 AM
  4. My PayPal Order Completes Even If Customer Cancels Before Paying
    By mtrantas in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 10 Feb 2008, 05:29 AM

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