{
"merNo": 104001001,
"merOrderNo": "ORDER_20260519_001",
"currencyCode": "USD",
"sourceAmount": "100.00",
"returnUrl": "https://merchant.com/return",
"notifyUrl": "https://merchant.com/notify",
"sign": "A1B2C3D4E5F6...",
"ipAddress": "192.168.1.1",
"cardNo": "4111111111111111",
"cardExpireMonth": "12",
"cardExpireYear": "2030",
"cardSecurityCode": "123",
"billingFirstName": "John",
"billingLastName": "Doe",
"billingAddress1": "123 Main St",
"billingCity": "Los Angeles",
"billingState": "California",
"billingCountry": "US",
"billingZipCode": "90001",
"billingPhone": "+1234567890",
"billingEmail": "john@example.com",
"shippingFirstName": "Jane",
"shippingLastName": "Doe",
"shippingAddress1": "456 Oak Ave",
"shippingCity": "New York",
"shippingState": "NY",
"shippingCountry": "US",
"shippingZipCode": "10001",
"productInfoList": [
{
"sku": "SKU001",
"productName": "Product A",
"price": "50.00",
"quantity": "2"
}
],
"userAgent": "Mozilla/5.0",
"deviceId": "DEV-12345",
"screenColorDepth": 24,
"screenHeight": 1080,
"screenWidth": 1920,
"javaEnabled": false,
"javascriptEnabled": true
}curl --location 'https://testpay.onlinepay.ai/v2/payment' \
--header 'paymentType: CREDIT_CARD' \
--header 'Referer: https://example.com' \
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9...' \
--header 'lang: en-US' \
--header 'orderType;' \
--header 'Content-Type: application/json' \
--data-raw '{
"merNo": 104001001,
"merOrderNo": "ORDER_20260519_001",
"currencyCode": "USD",
"sourceAmount": "100.00",
"returnUrl": "https://merchant.com/return",
"notifyUrl": "https://merchant.com/notify",
"sign": "A1B2C3D4E5F6...",
"ipAddress": "192.168.1.1",
"cardNo": "4111111111111111",
"cardExpireMonth": "12",
"cardExpireYear": "2030",
"cardSecurityCode": "123",
"billingFirstName": "John",
"billingLastName": "Doe",
"billingAddress1": "123 Main St",
"billingCity": "Los Angeles",
"billingState": "California",
"billingCountry": "US",
"billingZipCode": "90001",
"billingPhone": "+1234567890",
"billingEmail": "john@example.com",
"shippingFirstName": "Jane",
"shippingLastName": "Doe",
"shippingAddress1": "456 Oak Ave",
"shippingCity": "New York",
"shippingState": "NY",
"shippingCountry": "US",
"shippingZipCode": "10001",
"productInfoList": [
{
"sku": "SKU001",
"productName": "Product A",
"price": "50.00",
"quantity": "2"
}
],
"userAgent": "Mozilla/5.0",
"deviceId": "DEV-12345",
"screenColorDepth": 24,
"screenHeight": 1080,
"screenWidth": 1920,
"javaEnabled": false,
"javascriptEnabled": true
}'{
"code": "00000",
"message": "SUCCESS",
"data": {
"payCode": 2,
"tradeNo": "T20260519001",
"merOrderNo": "ORDER001",
"payUrl": "https://pay.example.com/checkout?token=xxx"
}
}