|
|
@@ -151,7 +151,7 @@ class Applepay extends Payment
|
|
|
$additional = $order->payment->additional;
|
|
|
$token = $additional['gateway_order_id'];
|
|
|
if ($transactionId != $token) {
|
|
|
- return new \Exception('order token is error');
|
|
|
+ return new \Exception('applepay order token is error');
|
|
|
}
|
|
|
return $this->capturePayment($token);
|
|
|
}
|
|
|
@@ -165,13 +165,11 @@ class Applepay extends Payment
|
|
|
'Content-Type' => 'application/json',
|
|
|
'Authorization' => 'Basic '.base64_encode("{$this->clientId}:{$this->apikey}")
|
|
|
],
|
|
|
- 'json' => $data,
|
|
|
'timeout' => 30,
|
|
|
'verify' => false
|
|
|
]);
|
|
|
$responseBody = $response->getBody()->getContents();
|
|
|
Log::channel('payment')->info('appleypay capturePayment response', [
|
|
|
- 'order_id' => $order->increment_id ?? null,
|
|
|
'status' => $response->getStatusCode(),
|
|
|
'body' => json_decode($responseBody, true),
|
|
|
'data' => $data
|