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,
|
||||
'amount' => $paypalProduct->quantity,
|
||||
'price' => $paypalProduct->price,
|
||||
'currency_code' => $paypalProduct->currency_code,
|
||||
'payer' => json_encode($response->result->payer),
|
||||
]);
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ class Payment extends Model
|
|||
'type',
|
||||
'amount',
|
||||
'price',
|
||||
'currency_code',
|
||||
];
|
||||
|
||||
public static function boot()
|
||||
|
|
Loading…
Reference in a new issue