Payment Methods List
Get all payment methods using this api. also filtered payment list will available on same response if you send currency and currency by checkout is available via admin.
GET
https://castleindia.in/emart/public /api/payment-list?currency=xxx&secret=xxxxx /api/payment-list
Query Parameters
Name
Type
Description
currency*
String
Three digit currency code eg : INR
secret*
String
Client secret which you obtain from admin panel.
Headers
Name
Type
Description
Accept*
String
application/json.
{
"online_payments": [
{
"payment_method": "paypal",
"enable": 1,
"PAYPAL_CLIENT_ID": "AV5SgId0JPqEbFU5nDK4nRaACuUk24GQmnANba-UbTaJ4i9q4KFWzPsSr3ncanbOPfAqC4jNJK4VT9IH",
"PAYPAL_SECRET": "EMoQjI4W27Ap-4mwTIadf-bZAqHptJ0IwZyo2PpryPCJGw1X2NOZe-ORAcOrLo2UvLhZcahyhnxmk2Ex",
"PAYPAL_MODE": "sandbox",
"logo": "https://emartv8.test/images/payment/paypal.png"
},
{
"payment_method": "stripe",
"enable": 1,
"STRIPE_KEY": "pk_test_qQEK1HlAwSUtLoRgKSc5jcAC00bTS4A93l",
"STRIPE_SECRET": "sk_test_5bEjEwBwW9nganizk2G5m4At007lVAKC7N",
"logo": "https://emartv8.test/images/payment/stripe.png"
},
{
"payment_method": "paytm",
"enable": 1,
"PAYTM_ENVIRONMENT": "local",
"PAYTM_MERCHANT_ID": "kSGkBY31650660827840",
"PAYTM_MERCHANT_KEY": "gq9dO80Xoj_v4Inv",
"PAYTM_MERCHANT_WEBSITE": "WEBSTAGING",
"PAYTM_CHANNEL": "WEB",
"PAYTM_INDUSTRY_TYPE": "Retail",
"logo": "https://emartv8.test/images/payment/paytm.png"
},
{
"payment_method": "paystack",
"enable": 1,
"PAYSTACK_PUBLIC_KEY": "pk_test_76afe2620843cfc96e58948df9429d667949708e",
"PAYSTACK_SECRET_KEY": "sk_test_bfd1233acfa964c579548e076042f113867790fd",
"PAYSTACK_PAYMENT_URL": "https://api.paystack.co",
"logo": "https://emartv8.test/images/payment/braintree.png"
},
{
"payment_method": "razorpay",
"enable": 1,
"RAZOR_PAY_KEY": "rzp_test_g2iY67U70Ad1oj",
"RAZOR_PAY_SECRET": "whPD2FPeg2xrxU8J84jVSIB3",
"logo": "https://emartv8.test/images/payment/razorpay.png"
},
{
"payment_method": "paymoney",
"enable": 1,
"PAYU_METHOD": "test",
"PAYU_DEFAULT": "money",
"PAYU_MERCHANT_KEY": "kOFGXHRT",
"PAYU_MERCHANT_SALT": "VGkYSSWRnx",
"PAYU_AUTH_HEADER": "6+m8xqo3Kmhr+FNF3QkGn+rzLxCn2LI3idnZuumgiVY=",
"PAY_U_MONEY_ACC": true,
"PAYU_REFUND_URL": "https://test.payumoney.com/treasury/merchant/refundPayment",
"logo": "https://emartv8.test/images/payment/payumoney.png"
}
],
"other_options": [
{
"name": "Cash On Delivery",
"enable": 1
},
{
"name": "Bank Transfer",
"enable": 1
}
]
}
IF response fail
{
"msg": "The secret field is required.",
"status": "fail"
}
Last updated
Was this helpful?