|
|
@@ -137,17 +137,17 @@ class AwxAfterpay extends Payment
|
|
|
'payment_method' => [
|
|
|
'type' => 'afterpay',
|
|
|
'afterpay' => [
|
|
|
- 'shopper_email' => $order->email,
|
|
|
+ 'shopper_email' => $bill->email,
|
|
|
'billing' => [
|
|
|
- 'first_name' => $order->first_name,
|
|
|
- 'last_name' => $order->last_name,
|
|
|
- 'phone_number' => $order->phone,
|
|
|
+ 'first_name' => $bill->first_name,
|
|
|
+ 'last_name' => $bill->last_name,
|
|
|
+ 'phone_number' => $bill->phone,
|
|
|
'address' => [
|
|
|
- 'country_code' => $order->country,
|
|
|
- 'city' => $order->city,
|
|
|
- 'street' => $order->address,
|
|
|
- 'postcode' => $order->postcode,
|
|
|
- 'state' => $order->state
|
|
|
+ 'country_code' => $bill->country,
|
|
|
+ 'city' => $bill->city,
|
|
|
+ 'street' => $bill->address,
|
|
|
+ 'postcode' => $bill->postcode,
|
|
|
+ 'state' => $bill->state
|
|
|
],
|
|
|
],
|
|
|
]
|