there are no message_type parameter in hosted checkout process

https://www.2checkout.com/documentation/checkout/parameters
This commit is contained in:
Vaidas Lungis committed 2015-05-21 10:25:08 +03:00
1 parent 5c3936f39c
commit 769a6fa727
1 file changed
+1 -16
+1 -16
View File
@@ -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']) {