28 lines
861 B
PHP
28 lines
861 B
PHP
<?php
|
|
|
|
return [
|
|
'merchant_id' => env('MIDTRANS_MERCHANT_ID', ''),
|
|
'client_key' => env('MIDTRANS_CLIENT_KEY', ''),
|
|
'server_key' => env('MIDTRANS_SERVER_KEY', ''),
|
|
|
|
'is_production' => env('MIDTRANS_IS_PRODUCTION', true),
|
|
'is_sanitized' => env('MIDTRANS_IS_SANITIZED', true),
|
|
'is_3ds' => env('MIDTRANS_IS_3DS', true),
|
|
|
|
// Base URL for API requests
|
|
'base_url' => env('MIDTRANS_IS_PRODUCTION', true) ?
|
|
'https://api.midtrans.com' :
|
|
'https://api.sandbox.midtrans.com',
|
|
|
|
// Notification URL
|
|
'notification_url' => env('MIDTRANS_NOTIFICATION_URL'),
|
|
|
|
// Default currency
|
|
'currency' => env('MIDTRANS_CURRENCY', 'IDR'),
|
|
|
|
// Payment methods to enable (empty array means all available methods)
|
|
'enabled_payments' => [],
|
|
|
|
// Default language
|
|
'language' => env('MIDTRANS_LANGUAGE', 'id'),
|
|
];
|