lib/nitro_pay/transaction.rb in nitro_pay-1.0.4 vs lib/nitro_pay/transaction.rb in nitro_pay-1.0.6

- old
+ new

@@ -19,10 +19,10 @@ end # GET /api/transactions/:tid by it attr def verify auth_hash = {} - tid = self.resp[:tid] + !self.tid.nil? ? tid = self.tid : tid = self.resp[:tid] auth_hash[:auth] = self.request_params[:auth] if tid.nil? then return {error:'TID not received'} else self.path = "transactions/#{tid}#{auth_hash.it_keys_to_get_param}" end return self.get_json_request end \ No newline at end of file