mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-22 04:53:46 +09:00
not needed conditional statement as previously is loaded transaction data.
Moreover order_number as txn_id is set latter.
This commit is contained in:
1 parent
5642ba596c
commit
89335eafdb
1 file changed
-2
@@ -127,8 +127,6 @@ class Payment_Adapter_TwoCheckout implements \Box\InjectionAwareInterface
|
||||
} elseif(isset($ipn['bb_invoice_id'])) {
|
||||
$invoice_id = $ipn['bb_invoice_id'];
|
||||
$api_admin->invoice_transaction_update(array('id'=>$id, 'invoice_id'=>$invoice_id));
|
||||
} elseif(!isset($ipn['bb_invoice_id']) && isset($ipn['order_number'])) {
|
||||
$invoice_id = R::getCell('SELECT invoice_id FROM transaction WHERE txn_id = :id AND invoice_id IS NOT NULL', array('id'=>$ipn['order_number']));
|
||||
}
|
||||
|
||||
if(!$invoice_id) {
|
||||
|
||||
Reference in new issue
Block a user