File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ public function purchase(Transaction $transaction)
4444        // We assume this means API driven 
4545        if  ($ responseisTransparentRedirect ()) {
4646            if  ($ responseisSuccessful ()) {
47+                 $ transactiontransaction  = $ responsegetTransactionReference ();
4748                $ transactionstatus  = Transaction::STATUS_PURCHASE_COMPLETE ;
4849                $ transactionsave ();
4950            }
@@ -163,6 +164,7 @@ public function authorize(Transaction $transaction)
163164        // We assume this means API driven 
164165        if  ($ responseisTransparentRedirect ()) {
165166            if  ($ responseisSuccessful ()) {
167+                 $ transactiontransaction  = $ responsegetTransactionReference ();
166168                $ transactionstatus  = Transaction::STATUS_AUTHORIZE_COMPLETE ;
167169                $ transactionsave ();
168170            }
@@ -304,6 +306,7 @@ public function capture(Transaction $transaction)
304306        ]);
305307
306308        if  ($ responseisSuccessful ()) {
309+             $ transactiontransaction  = $ responsegetTransactionReference ();
307310            $ transactionstatus  = Transaction::STATUS_CAPTURE ;
308311            $ transactionsave ();
309312        } else  {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments