paypay/paypayopa-sdk-php

View on GitHub
src/conf/apiMappings.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

return [
    [
        'api_name' => 'v1_getRequestOrder',
        'path'     => 'v1/requestOrder/{merchantPaymentId}',
        'method'   => 'GET',
    ],
    [
        'api_name' => 'v2_getWalletBalance',
        'path'     => '',
        'method'   => 'GET',
    ],
    [
        'api_name' => 'v3_getWalletBalance',
        'path'     => 'v3/wallet/balance',
        'method'   => 'GET',
    ],
    [
        'api_name' => 'v2_fetchUserProfileForWebApp',
        'path'     => 'v2/user/authorizations/details',
        'method'   => 'GET',
    ],
    [
        'api_name' => 'v2_getPaymentMethods',
        'path'     => 'v2/paymentMethods',
        'method'   => 'GET',
    ],
    [
        'api_name' => 'v5_getWalletBalance',
        'path'     => 'v5/wallet/balance',
        'method'   => 'GET',
    ],
    [
        'api_name' => 'v2_getQRPaymentDetails',
        'path'     => 'v2/codes/payments/{merchantPaymentId}',
        'method'   => 'GET',
    ],
    [
        'api_name' => 'v2_getReversedCashBackDetails',
        'path'     => 'v2/cashback_reversal/{merchantCashbackReversalId}/{merchantCashbackID}',
        'method'   => 'GET',
    ],
    [
        'api_name' => 'v4_getWalletBalance',
        'path'     => 'v4/wallet/balance',
        'method'   => 'GET',
    ],
    [
        'api_name' => 'v2_getRefundDetails',
        'path'     => 'v2/refunds/{merchantRefundId}',
        'method'   => 'GET',
    ],
    [
        'api_name' => 'v6_getWalletBalance',
        'path'     => 'v6/wallet/balance',
        'method'   => 'GET',
    ],
    [
        'api_name' => 'v2_getTopUpDetails',
        'path'     => 'v2/wallet/topups/{merchantTopUpId}',
        'method'   => 'GET',
    ],
    [
        'api_name' => 'v2_getPaymentDetail',
        'path'     => 'v2/payments/{merchantPaymentId}',
        'method'   => 'GET',
    ],
    [
        'api_name' => 'v2_checkWalletBalance',
        'path'     => 'v2/wallet/check_balance',
        'method'   => 'GET',
    ],
    [
        'api_name' => 'v2_getCashbackDetails',
        'path'     => 'v2/cashback/{merchantCashbackId}',
        'method'   => 'GET',
    ],
    [
        'api_name' => 'v2_getUserProfile',
        'path'     => 'v2/user/profile',
        'method'   => 'GET',
    ],
    [
        'api_name' => 'v2_getSecureUserProfile',
        'path'     => 'v2/user/profile/secure',
        'method'   => 'GET',
    ],
    [
        'api_name' => 'v1_sendPushNotification',
        'path'     => 'v1/push/user/notification',
        'method'   => 'POST',
    ],
    [
        'api_name' => 'v1_createRequestOrder',
        'path'     => 'v1/requestOrder',
        'method'   => 'POST',
    ],
    [
        'api_name' => 'v2_createUserAuthForWebApp',
        'path'     => 'v2/user/authorizations/applications',
        'method'   => 'POST',
    ],
    [
        'api_name' => 'v1_sendPushTemplateNotification',
        'path'     => 'v1/push/notification',
        'method'   => 'POST',
    ],
    [
        'api_name' => 'v2_captureAuthorizedOrder',
        'path'     => 'v2/payments/capture',
        'method'   => 'POST',
    ],
    [
        'api_name' => 'v2_revertAuthorizedOrder',
        'path'     => 'v2/payments/preauthorize/revert',
        'method'   => 'POST',
    ],
    [
        'api_name' => 'v2_createOrderAndAuthorize',
        'path'     => 'v2/payments/preauthorize',
        'method'   => 'POST',
    ],
    [
        'api_name' => 'v2_createUserWalletTopUp',
        'path'     => 'v2/user/wallet/topups',
        'method'   => 'POST',
    ],
    [
        'api_name' => 'v1_createSubscriptionPayment',
        'path'     => 'v1/subscription/payments',
        'method'   => 'POST',
    ],
    [
        'api_name' => 'v2_createCashBackRequest',
        'path'     => 'v2/cashback',
        'method'   => 'POST',
    ],
    [
        'api_name' => 'v2_createPayment',
        'path'     => 'v2/payments',
        'method'   => 'POST',
    ],
    [
        'api_name' => 'v2_createTopUp',
        'path'     => 'v2/wallet/topups',
        'method'   => 'POST',
    ],
    [
        'api_name' => 'v2_createDynamicQRCode',
        'path'     => 'v2/codes',
        'method'   => 'POST',
    ],
    [
        'api_name' => 'v2_createRefundPayment',
        'path'     => 'v2/refunds',
        'method'   => 'POST',
    ],
    [
        'api_name' => 'v2_createReverseCashBackRequest',
        'path'     => 'v2/cashback_reversal',
        'method'   => 'POST',
    ],
    [
        'api_name' => 'v1_sendPushTemplateNotificationToMerchantUser',
        'path'     => 'v1/push/merchant/users/notifications',
        'method'   => 'POST',
    ],
    [
        'api_name' => 'v1_cancelRequestOrder',
        'path'     => 'v1/requestOrder/{merchantPaymentId}',
        'method'   => 'DELETE',
    ],
    [
        'api_name' => 'v2_deleteDynamicQRCode',
        'path'     => 'v2/codes/{code}',
        'method'   => 'DELETE',
    ],
    [
        'api_name' => 'v2_cancelPayment',
        'path'     => 'v2/payments/{merchantPaymentId}',
        'method'   => 'DELETE',
    ],
];