diff --git a/app/Http/Controllers/Admin/PaymentController.php b/app/Http/Controllers/Admin/PaymentController.php index f295e407..a64b0a03 100644 --- a/app/Http/Controllers/Admin/PaymentController.php +++ b/app/Http/Controllers/Admin/PaymentController.php @@ -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), ]); diff --git a/app/Models/Payment.php b/app/Models/Payment.php index 76a2b29d..85bb4b0d 100644 --- a/app/Models/Payment.php +++ b/app/Models/Payment.php @@ -29,6 +29,7 @@ class Payment extends Model 'type', 'amount', 'price', + 'currency_code', ]; public static function boot()