|  | @@ -39,7 +39,7 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 39 | 39 |      public function __construct(Invoice $invoice, $settings) | 
                                                                                                            
                                                            | 40 | 40 |      { | 
                                                                                                            
                                                            | 41 | 41 |          $this->invoice($invoice); | 
                                                                                                            
                                                            | 42 |  | -        $this->settings = (object)$settings; | 
                                                                                                            
                                                            |  | 42 | +        $this->settings = (object) $settings; | 
                                                                                                            
                                                            | 43 | 43 |      } | 
                                                                                                            
                                                            | 44 | 44 |   | 
                                                                                                            
                                                            | 45 | 45 |      /** | 
                                                                                                                                                        
                                                        |  | @@ -53,7 +53,7 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 53 | 53 |      { | 
                                                                                                            
                                                            | 54 | 54 |          $amount = $this->invoice->getAmount() * 10; // convert to rial | 
                                                                                                            
                                                            | 55 | 55 |   | 
                                                                                                            
                                                            | 56 |  | -        $data_query = 'Amount=' . $this->test_input($amount) . '&callbackURL=' . $this->test_input($this->settings->callbackUrl) . '&InvoiceID=' . $this->test_input($this->invoice->getUuid()) . '&TerminalID=' . $this->test_input($this->settings->terminalId) . '&Payload=' . $this->test_input(""); | 
                                                                                                            
                                                            |  | 56 | +        $data_query = 'Amount='.$this->test_input($amount).'&callbackURL='.$this->test_input($this->settings->callbackUrl).'&InvoiceID='.$this->test_input($this->invoice->getUuid()).'&TerminalID='.$this->test_input($this->settings->terminalId).'&Payload='.$this->test_input(""); | 
                                                                                                            
                                                            | 57 | 57 |          $address_service_token = $this->settings->apiGetToken; | 
                                                                                                            
                                                            | 58 | 58 |   | 
                                                                                                            
                                                            | 59 | 59 |          $token_array = $this->makeHttpChargeRequest('POST', $data_query, $address_service_token); | 
                                                                                                                                                        
                                                        |  | @@ -106,7 +106,7 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 106 | 106 |              $this->notVerified($resp_code); | 
                                                                                                            
                                                            | 107 | 107 |          } | 
                                                                                                            
                                                            | 108 | 108 |   | 
                                                                                                            
                                                            | 109 |  | -        $data_query = 'digitalreceipt=' . Request::input('digitalreceipt') . '&Tid=' . $this->settings->terminalId; | 
                                                                                                            
                                                            |  | 109 | +        $data_query = 'digitalreceipt='.Request::input('digitalreceipt').'&Tid='.$this->settings->terminalId; | 
                                                                                                            
                                                            | 110 | 110 |          $advice_array = $this->makeHttpChargeRequest('POST', $data_query, $this->settings->apiVerificationUrl); | 
                                                                                                            
                                                            | 111 | 111 |          $decode_advice_array = json_decode($advice_array); | 
                                                                                                            
                                                            | 112 | 112 |   | 
                                                                                                                                                
                                         
                                        
                                            
                                                                                                    Please login to merge, or discard this patch.