|
|
@@ -132,7 +132,8 @@ class Airwallex extends Payment
|
|
|
'paymentIntentId' => $paymentIntentId ?? null,
|
|
|
'order' => $order->increment_id ?? null,
|
|
|
'status' => $response->getStatusCode(),
|
|
|
- 'body' => $responseBody,
|
|
|
+ 'body' => json_decode($responseBody, true),
|
|
|
+ 'data' => $data
|
|
|
]);
|
|
|
$resultObject = json_decode($responseBody);
|
|
|
if (empty($resultObject->id)) {
|
|
|
@@ -169,7 +170,7 @@ class Airwallex extends Payment
|
|
|
//成功修改状态
|
|
|
public function paymentSucceeded($orderId, $transactionId)
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
$order = $this->orderRepository->findOneByField('increment_id', $orderId);
|
|
|
if (!$order->id) {
|
|
|
return false;
|
|
|
@@ -179,7 +180,7 @@ class Airwallex extends Payment
|
|
|
}
|
|
|
$order->status = Order::STATUS_PROCESSING;
|
|
|
$order->save();
|
|
|
-
|
|
|
+
|
|
|
if ($order->payment) {
|
|
|
$additional = $order->payment->additional;
|
|
|
$additional['transaction_id'] = $transactionId;
|