|
@@ -67,7 +67,7 @@ discard block |
|
|
block discarded – undo |
|
67
|
67
|
public function __construct(Invoice $invoice, $settings) |
|
68
|
68
|
{ |
|
69
|
69
|
$this->invoice($invoice); |
|
70
|
|
- $this->settings = (object)$settings; |
|
|
70
|
+ $this->settings = (object) $settings; |
|
71
|
71
|
$this->client = new Client(); |
|
72
|
72
|
$this->oauthToken = $this->oauth(); |
|
73
|
73
|
} |
|
@@ -267,7 +267,7 @@ discard block |
|
|
block discarded – undo |
|
267
|
267
|
|
|
268
|
268
|
if ($response->getStatusCode() != 200 || $body['result']['code'] != 0) { |
|
269
|
269
|
$message = $body['result']['message'] ?? 'خطا در هنگام درخواست برای برگشت وجه رخ داده است.'; |
|
270
|
|
- throw new InvalidPaymentException($message, (int)$response->getStatusCode()); |
|
|
270
|
+ throw new InvalidPaymentException($message, (int) $response->getStatusCode()); |
|
271
|
271
|
} |
|
272
|
272
|
|
|
273
|
273
|
return $body; |
|
@@ -339,7 +339,7 @@ discard block |
|
|
block discarded – undo |
|
339
|
339
|
|
|
340
|
340
|
if ($response->getStatusCode() != 200 || $body['result']['code'] != 0) { |
|
341
|
341
|
$message = $body['result']['message'] ?? 'خطا در هنگام درخواست برای تحویل کالا رخ داده است.'; |
|
342
|
|
- throw new InvalidPaymentException($message, (int)$response->getStatusCode()); |
|
|
342
|
+ throw new InvalidPaymentException($message, (int) $response->getStatusCode()); |
|
343
|
343
|
} |
|
344
|
344
|
|
|
345
|
345
|
return $body; |
|
@@ -363,7 +363,7 @@ discard block |
|
|
block discarded – undo |
|
363
|
363
|
|
|
364
|
364
|
if ($response->getStatusCode() != 200 || $body['result']['code'] != 0) { |
|
365
|
365
|
$message = $body['result']['message'] ?? 'خطا در هنگام درخواست برای دریافت تنظیمات مرجوعی رخ داده است.'; |
|
366
|
|
- throw new InvalidPaymentException($message, (int)$response->getStatusCode()); |
|
|
366
|
+ throw new InvalidPaymentException($message, (int) $response->getStatusCode()); |
|
367
|
367
|
} |
|
368
|
368
|
|
|
369
|
369
|
$certFile = $response['certFile']; |
|
@@ -415,7 +415,7 @@ discard block |
|
|
block discarded – undo |
|
415
|
415
|
|
|
416
|
416
|
if ($response->getStatusCode() != 200 || $body['result']['code'] != 0) { |
|
417
|
417
|
$message = $body['result']['message'] ?? 'خطا در هنگام درخواست مرجوعی تراکنش رخ داده است.'; |
|
418
|
|
- throw new InvalidPaymentException($message, (int)$response->getStatusCode()); |
|
|
418
|
+ throw new InvalidPaymentException($message, (int) $response->getStatusCode()); |
|
419
|
419
|
} |
|
420
|
420
|
|
|
421
|
421
|
return $body; |