From 769a6fa727cfa42b760fa29c574a8d9fc24c5ed0 Mon Sep 17 00:00:00 2001 From: Vaidas Lungis Date: Thu, 21 May 2015 10:25:08 +0300 Subject: [PATCH] there are no message_type parameter in hosted checkout process https://www.2checkout.com/documentation/checkout/parameters --- src/bb-library/Payment/Adapter/TwoCheckout.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/bb-library/Payment/Adapter/TwoCheckout.php b/src/bb-library/Payment/Adapter/TwoCheckout.php index d0595f3b6..86ba826f7 100644 --- a/src/bb-library/Payment/Adapter/TwoCheckout.php +++ b/src/bb-library/Payment/Adapter/TwoCheckout.php @@ -119,22 +119,7 @@ class Payment_Adapter_TwoCheckout implements \Box\InjectionAwareInterface throw new Payment_Exception('2Checkout IPN is not valid'); } - $types = array( - 'ORDER_CREATED', - 'SHIP_STATUS_CHANGED', - 'INVOICE_STATUS_CHANGED', - 'REFUND_ISSUED', - 'FRAUD_STATUS_CHANGED', - 'RECURRING_INSTALLMENT_SUCCESS', - 'RECURRING_STOPPED', - 'RECURRING_INSTALLMENT_FAILED', - 'RECURRING_COMPLETE', - 'RECURRING_RESTARTED', - ); - - if (in_array($ipn['message_type'], $types)) { - $api_admin->invoice_transaction_update(array('id' => $id, 'type' => $ipn['message_type'])); - } + $api_admin->invoice_transaction_update(array('id' => $id, 'type' => 'ORDER CREATED')); $invoice_id = null; if($tx['invoice_id']) {