demo transaksi

This commit is contained in:
2026-04-01 11:55:47 +07:00
parent 619d758027
commit 7417222c79
166 changed files with 3111 additions and 5265 deletions
@@ -44,6 +44,8 @@ $config['fcm_credentials_json'] = '';
$config['fcm_credentials_path'] = FCPATH . 'ngojol-trial-firebase-adminsdk-lc81n-00c9e935db.json';
$config['fcm_limit_per_hour'] = 100;
$config['fcm_limit_per_day'] = 500;
// When true, Pelanggan/Merchant/Driver login does not require an FCM device token (e.g. API tests).
$config['fcm_login_allow_no_device_token'] = false;
$config['maps_limit_per_hour'] = 1000;
$config['maps_limit_per_day'] = 5000;
@@ -59,6 +61,10 @@ define('FCM_CREDENTIALS_JSON', $config['fcm_credentials_json']);
define('FCM_CREDENTIALS_PATH', $config['fcm_credentials_path']);
define('FCM_LIMIT_PER_HOUR', $config['fcm_limit_per_hour']);
define('FCM_LIMIT_PER_DAY', $config['fcm_limit_per_day']);
define(
'FCM_LOGIN_ALLOW_NO_DEVICE_TOKEN',
filter_var($config['fcm_login_allow_no_device_token'], FILTER_VALIDATE_BOOLEAN)
);
define('MAPS_LIMIT_PER_HOUR', $config['maps_limit_per_hour']);
define('MAPS_LIMIT_PER_DAY', $config['maps_limit_per_day']);
+8 -3
View File
@@ -6,9 +6,14 @@ defined('BASEPATH') or exit('No direct script access allowed');
| Legacy FCM config DO NOT USE
|--------------------------------------------------------------------------
| Push notifications use FCM HTTP v1 only (see application/helpers/fcm_v1_helper.php).
| Set FCM_CREDENTIALS_PATH or FCM_CREDENTIALS_JSON and FCM_PROJECT_ID in the environment.
| This file exists so the deprecated application/libraries/Fcm.php does not
| load a missing config; the legacy library must not be used (no legacy API key).
| Service account path/project id live in application/config/config.php (constants
| FCM_CREDENTIALS_PATH, FCM_CREDENTIALS_JSON, FCM_PROJECT_ID). This file exists so the
| deprecated application/libraries/Fcm.php does not load a missing config; do not
| use the legacy library (no legacy API key).
|
| Mobile login (Pelanggan/login, Merchant/login, Driver/login) expects a device token
| from the APK (Firebase getToken). To allow clients without a token (e.g. API tests),
| set $config['fcm_login_allow_no_device_token'] = true in config.php.
*/
$config['fcm_api_key'] = '';
$config['fcm_api_send_address'] = 'https://fcm.googleapis.com/fcm/send';