|
| 1 | +<?php |
| 2 | + |
| 3 | +use Deyjandi\VivaWallet\Enums\VivaWalletPaymentMethod; |
| 4 | + |
| 5 | +return [ |
| 6 | + |
| 7 | + /* |
| 8 | + |-------------------------------------------------------------------------- |
| 9 | + | Viva Wallet Environment |
| 10 | + |-------------------------------------------------------------------------- |
| 11 | + | |
| 12 | + | This value determines the target environment for every HTTP request. |
| 13 | + | |
| 14 | + | Available values: "demo" / "live". |
| 15 | + */ |
| 16 | + 'env' => env('VIVA_WALLET_ENV', 'live'), |
| 17 | + |
| 18 | + /* |
| 19 | + |-------------------------------------------------------------------------- |
| 20 | + | Merchant ID |
| 21 | + |-------------------------------------------------------------------------- |
| 22 | + | |
| 23 | + | Your merchant id value which is generated upon account creation. |
| 24 | + | |
| 25 | + | @see https://developer.vivawallet.com/getting-started/find-your-merchant-id-and-api-key/ |
| 26 | + */ |
| 27 | + 'merchant_id' => env('VIVA_WALLET_MERCHANT_ID'), |
| 28 | + |
| 29 | + /* |
| 30 | + |-------------------------------------------------------------------------- |
| 31 | + | API Key |
| 32 | + |-------------------------------------------------------------------------- |
| 33 | + | |
| 34 | + | Your api key value. |
| 35 | + | |
| 36 | + | @see https://developer.vivawallet.com/getting-started/find-your-merchant-id-and-api-key/ |
| 37 | + */ |
| 38 | + 'api_key' => env('VIVA_WALLET_API_KEY'), |
| 39 | + |
| 40 | + /* |
| 41 | + |-------------------------------------------------------------------------- |
| 42 | + | Client ID |
| 43 | + |-------------------------------------------------------------------------- |
| 44 | + | |
| 45 | + | Your client id value. |
| 46 | + | |
| 47 | + | @see https://developer.vivawallet.com/getting-started/find-your-client-credentials/ |
| 48 | + */ |
| 49 | + 'client_id' => env('VIVA_WALLET_CLIENT_ID'), |
| 50 | + |
| 51 | + /* |
| 52 | + |-------------------------------------------------------------------------- |
| 53 | + | Client Secret |
| 54 | + |-------------------------------------------------------------------------- |
| 55 | + | |
| 56 | + | Your client secret value. |
| 57 | + | |
| 58 | + | @see https://developer.vivawallet.com/getting-started/find-your-client-credentials/ |
| 59 | + */ |
| 60 | + 'client_secret' => env('VIVA_WALLET_CLIENT_SECRET'), |
| 61 | + |
| 62 | + /* |
| 63 | + |-------------------------------------------------------------------------- |
| 64 | + | Webhook Verification Key |
| 65 | + |-------------------------------------------------------------------------- |
| 66 | + | |
| 67 | + | Your webhook verification key value. |
| 68 | + | |
| 69 | + | You can request a webhook verification key by using this command: |
| 70 | + | `php artisan viva-wallet:request webhook-key` |
| 71 | + | |
| 72 | + | This command stores the webhook verification key in to the ".env" file. |
| 73 | + | |
| 74 | + | @see https://developer.vivawallet.com/webhooks-for-payments/setup-webhooks/#generate-a-webhook-verification-key |
| 75 | + */ |
| 76 | + 'webhook_key' => env('VIVA_WALLET_WEBHOOK_KEY'), |
| 77 | + |
| 78 | + /* |
| 79 | + |-------------------------------------------------------------------------- |
| 80 | + | Guzzle Http Client Default Options |
| 81 | + |-------------------------------------------------------------------------- |
| 82 | + | |
| 83 | + | Here you can specify the default options for the guzzle http client. |
| 84 | + | |
| 85 | + | This value will affect every HTTP request the package makes. |
| 86 | + | |
| 87 | + | @see https://docs.guzzlephp.org/en/stable/quickstart.html#creating-a-client |
| 88 | + */ |
| 89 | + 'http_client' => [ |
| 90 | + |
| 91 | + 'headers' => [ |
| 92 | + 'Accept' => 'application/json', |
| 93 | + ], |
| 94 | + |
| 95 | + ], |
| 96 | + |
| 97 | + /* |
| 98 | + |-------------------------------------------------------------------------- |
| 99 | + | Create Payment Order Default Options |
| 100 | + |-------------------------------------------------------------------------- |
| 101 | + | |
| 102 | + | Here you can specify the default options for every |
| 103 | + | \Deyjandi\VivaWallet\Facades\VivaWallet::createPaymentOrder() request. |
| 104 | + | |
| 105 | + | @see https://developer.vivawallet.com/apis-for-payments/payment-api/#tag/Payments |
| 106 | + | @see https://developer.vivawallet.com/smart-checkout/smart-checkout-implementation/ |
| 107 | + */ |
| 108 | + 'payment' => [ |
| 109 | + |
| 110 | + 'preauth' => (bool) env('VIVA_WALLET_PAYMENT_PREAUTH', false), |
| 111 | + |
| 112 | + 'timeout' => (int) env('VIVA_WALLET_PAYMENT_TIMEOUT', 1800), |
| 113 | + |
| 114 | + 'disable_cash' => (bool) env('VIVA_WALLET_PAYMENT_DISABLE_CASH', true), |
| 115 | + |
| 116 | + 'disable_wallet' => (bool) env('VIVA_WALLET_DISABLE_WALLET', true), |
| 117 | + |
| 118 | + 'source_code' => env('VIVA_WALLET_PAYMENT_SOURCE_CODE'), |
| 119 | + |
| 120 | + 'brand_color' => env('VIVA_WALLET_PAYMENT_BRAND_COLOR', '06abc1'), |
| 121 | + |
| 122 | + 'preselected_method' => env('VIVA_WALLET_PAYMENT_PRESELECTED_METHOD', VivaWalletPaymentMethod::CreditCard) |
| 123 | + |
| 124 | + ], |
| 125 | +]; |
0 commit comments