Adding the correct currency_code to payments
This commit is contained in:
parent
b445cf7003
commit
2f9dce8ddf
|
@ -158,6 +158,7 @@ class PaymentController extends Controller
|
||||||
'status' => $response->result->status,
|
'status' => $response->result->status,
|
||||||
'amount' => $paypalProduct->quantity,
|
'amount' => $paypalProduct->quantity,
|
||||||
'price' => $paypalProduct->price,
|
'price' => $paypalProduct->price,
|
||||||
|
'currency_code' => $paypalProduct->currency_code,
|
||||||
'payer' => json_encode($response->result->payer),
|
'payer' => json_encode($response->result->payer),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@ class Payment extends Model
|
||||||
'type',
|
'type',
|
||||||
'amount',
|
'amount',
|
||||||
'price',
|
'price',
|
||||||
|
'currency_code',
|
||||||
];
|
];
|
||||||
|
|
||||||
public static function boot()
|
public static function boot()
|
||||||
|
|
Loading…
Reference in a new issue