<?php

// SSLCommerz configuration

return [
    'projectPath' => env('PROJECT_PATH'),
    // For Sandbox, use "https://sandbox.sslcommerz.com"
    // For Live, use "https://securepay.sslcommerz.com"
    'apiDomain' => getPaymentEnv("API_DOMAIN_URL", "https://sandbox.sslcommerz.com"),
    'apiCredentials' => [
        'store_id' => getPaymentEnv("STORE_ID"),
        'store_password' => getPaymentEnv("STORE_PASSWORD"),
    ],
    'apiUrl' => [
        'make_payment' => "/gwprocess/v4/api.php",
        'transaction_status' => "/validator/api/merchantTransIDvalidationAPI.php",
        'order_validate' => "/validator/api/validationserverAPI.php",
        'refund_payment' => "/validator/api/merchantTransIDvalidationAPI.php",
        'refund_status' => "/validator/api/merchantTransIDvalidationAPI.php",
    ],
    'connect_from_localhost' => getPaymentEnv("IS_LOCALHOST", true), // For Sandbox, use "true", For Live, use "false"
    'success_url' => '/payment/sslcommerz/success',
    'failed_url' => '/payment/sslcommerz/fail',
    'cancel_url' => '/payment/sslcommerz/cancel',
    'ipn_url' => '/payment/sslcommerz/ipn',
];
