Browse Source

Adding the correct currency_code to payments

AVMG20 4 years ago
parent
commit
2f9dce8ddf
2 changed files with 2 additions and 0 deletions
  1. 1 0
      app/Http/Controllers/Admin/PaymentController.php
  2. 1 0
      app/Models/Payment.php

+ 1 - 0
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),
                 ]);
 

+ 1 - 0
app/Models/Payment.php

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