Browse Source

config placeholder

tags/1.0
0nepeop1e 4 years ago
parent
commit
ba182856f7
2 changed files with 18 additions and 1 deletions
  1. 14
    1
      config/payment.php
  2. 4
    0
      src/PaymentServiceProvider.php

+ 14
- 1
config/payment.php View File

@@ -3,5 +3,18 @@
3 3
 return [
4 4
     'default' => env('PAYMENT_GATEWAY'),
5 5
 
6
-    'gateway' => [],
6
+    'gateway' => [
7
+        'razerpay' => [
8
+            'endpoint' => env('RAZER_ENDPOINT', 'https://www.onlinepayment.com.my/'),
9
+            'merchant_id' => env('RAZER_MERCHANT_ID'),
10
+            'verify_key' => env('RAZER_VERIFY_KEY'),
11
+            'secret_key' => env('RAZER_SECRET_KEY'),
12
+        ],
13
+
14
+        'senangpay' => [
15
+            'endpoint' => env('SENANGPAY_ENDPOINT', 'https://app.senangpay.my/'),
16
+            'merchant_id' => env('SENANGPAY_MERCHANT_ID'),
17
+            'secret_key' => env('SENANGPAY_SECRET_KEY'),
18
+        ],
19
+    ],
7 20
 ];

+ 4
- 0
src/PaymentServiceProvider.php View File

@@ -5,12 +5,16 @@ namespace MirfalahTech\Laravel\Payment;
5 5
 
6 6
 
7 7
 use Illuminate\Contracts\Config\Repository;
8
+use Illuminate\Contracts\Container\BindingResolutionException;
8 9
 use Illuminate\Contracts\Foundation\Application;
9 10
 use Illuminate\Support\ServiceProvider;
10 11
 use MirfalahTech\Laravel\Payment\Manager\PaymentManager;
11 12
 
12 13
 class PaymentServiceProvider extends ServiceProvider
13 14
 {
15
+    /**
16
+     * @throws BindingResolutionException
17
+     */
14 18
     public function boot()
15 19
     {
16 20
         $config_path = realpath(__DIR__ . '/../config/payment.php');

Loading…
Cancel
Save