mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-22 04:53:46 +09:00
there are no message_type parameter in hosted checkout process
https://www.2checkout.com/documentation/checkout/parameters
This commit is contained in:
1 parent
5c3936f39c
commit
769a6fa727
1 file changed
+1
-16
@@ -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']) {
|
||||
|
||||
Reference in new issue
Block a user