|
| 1 | +<?php |
| 2 | + |
| 3 | +return [ |
| 4 | + /* |
| 5 | + |-------------------------------------------------------------------------- |
| 6 | + | Merchant profile id |
| 7 | + |-------------------------------------------------------------------------- |
| 8 | + | |
| 9 | + | Your merchant profile id , you can find the profile id on your PayTabs Merchant’s Dashboard- profile. |
| 10 | + | |
| 11 | + */ |
| 12 | + |
| 13 | + 'profile_id' => env('PAYTABS_PROFILE_ID', null), |
| 14 | + |
| 15 | + /* |
| 16 | + |-------------------------------------------------------------------------- |
| 17 | + | Server Key |
| 18 | + |-------------------------------------------------------------------------- |
| 19 | + | |
| 20 | + | You can find the Server key on your PayTabs Merchant’s Dashboard - Developers - Key management. |
| 21 | + | |
| 22 | + */ |
| 23 | + |
| 24 | + 'server_key' => env('PAYTABS_SERVER_KEY', null), |
| 25 | + |
| 26 | + /* |
| 27 | + |-------------------------------------------------------------------------- |
| 28 | + | Currency |
| 29 | + |-------------------------------------------------------------------------- |
| 30 | + | |
| 31 | + | The currency you registered in with PayTabs account |
| 32 | + you must pass value from this array ['AED','EGP','SAR','OMR','JOD','US'] |
| 33 | + | |
| 34 | + */ |
| 35 | + |
| 36 | + 'currency' => env('CURRENCY', 'SAR'), |
| 37 | + |
| 38 | + /* |
| 39 | + |-------------------------------------------------------------------------- |
| 40 | + | Region |
| 41 | + |-------------------------------------------------------------------------- |
| 42 | + | |
| 43 | + | The region you registered in with PayTabs |
| 44 | + you must pass value from this array ['ARE','EGY','SAU','OMN','JOR','GLOBAL'] |
| 45 | + | |
| 46 | + */ |
| 47 | + |
| 48 | + 'region' => env('PAYTABS_REGION', 'SAU'), |
| 49 | + |
| 50 | + /* |
| 51 | + |-------------------------------------------------------------------------- |
| 52 | + | The API endpoint |
| 53 | + |-------------------------------------------------------------------------- |
| 54 | + | |
| 55 | + | The transaction request API |
| 56 | + | |
| 57 | + */ |
| 58 | + 'paytabs_api' => env('PAYTABS_API', 'https://secure.paytabs.sa/'), |
| 59 | + |
| 60 | + /* |
| 61 | + |-------------------------------------------------------------------------- |
| 62 | + | Redirect URL |
| 63 | + |-------------------------------------------------------------------------- |
| 64 | + | |
| 65 | + | The redirect url after payment |
| 66 | + | |
| 67 | + */ |
| 68 | + 'redirect_url' => env('PAYTABS_REDIRECT_URL', null), |
| 69 | + |
| 70 | + /* |
| 71 | + |-------------------------------------------------------------------------- |
| 72 | + | Lang |
| 73 | + |-------------------------------------------------------------------------- |
| 74 | + | |
| 75 | + | The hosted payment page lang |
| 76 | + | |
| 77 | + */ |
| 78 | + 'lang' => '', |
| 79 | + 'model' => env('PAYMENT_MODEL', class_exists(App\Models\User::class) ? App\Models\User::class : App\User::class), |
| 80 | +]; |
0 commit comments