Adding the correct currency_code to payments

This commit is contained in:
AVMG20 2021-06-23 12:22:08 +02:00
parent b445cf7003
commit 2f9dce8ddf
2 changed files with 2 additions and 0 deletions

View file

@ -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),
]); ]);

View file

@ -29,6 +29,7 @@ class Payment extends Model
'type', 'type',
'amount', 'amount',
'price', 'price',
'currency_code',
]; ];
public static function boot() public static function boot()