1. PaymentMethod
Merchant Connect API
  • 版本记录
  • Integration Guide
    • EC Payment
      • Merchant API
        • Overview
        • Payment
        • Payment Methods
        • Response code
        • After Payment
          • Capture
          • Cancel
          • Refund
          • Cancel or Refund
          • Accept Notification
        • Features
          • Account Status Inquiry (ASI)
          • COF
          • Multi-Currency Transaction
          • Recurring
          • Smart Routing
          • Transaction Retry
          • Payout
          • Authentication
            • 3D Secure
            • FIDO Authentication
            • Authentication only
          • Tokenization
            • Gateway Tokenization
            • Create a gateway token
            • Network Tokenization
            • Pay with gateway token
            • Manage token
            • Network Token update notification
            • Card Based Network Token
    • In-store Payment
      • Merchant API (线下卡支付)
        • ZPK
          • ZPK
        • Payment
          • Payment
        • After Payment
          • Capture
          • Cancel
          • Refund
          • Cancel or Refund
          • Accept Notification
  • API Explorer
    • API Rules
  • PaymentMethod
    • PaymentMethod
      POST
    • PaymentMethod
      PUT
    • PaymentMethod
      GET
    • PaymentMethod
      DELETE
  • FXRateInquiry
    • FXRateInquiry
      POST
    • FXRateInquiry
      GET
  • Payment
    • Payment
      POST
    • Payment
      GET
    • Payment
      PUT
  • Payout
    • Payout
      POST
    • Payout
      GET
  • Capture
    • Capture
      POST
    • Capture
      GET
  • Cancel
    • Cancel
      POST
    • Cancel
      GET
  • Refund
    • Refund
      POST
    • Refund
      GET
  • Cryptogram
    • Cryptogram
    • Cryptogram
  • CancelOrRefund
    • Cancel or Refund
    • Cancel or Refund
  • Notification
    • Notification for PaymentMethod
    • Notification for Payment
    • Notification for Capture
    • Notification for Cancel
    • Notification for Refund
    • Notification for DataSubmission
    • Notification for MPM Static QR Code
    • Notification for Token Status Update
    • Notification for Settlement
    • Notification for Reversal
    • Notification for Cryptogram
    • Notification for Payout
  • HealthCheck
    • HealthCheck
  • ZPK
    • ZPK
  • 附录
    • Result Code
    • Appendix: Payment Method Variant
    • Appendix: Payment Brands
  • Coupon Write-off
    • Coupon Write-off
  • Coupon Reversal
    • Coupon Reversal
  1. PaymentMethod

PaymentMethod

POST
/g2/v1/payment/mer/{sid}/paymentMethod

请求参数

Path 参数

Header 参数

Body 参数application/json

示例
{
    "merchantTransInfo": {
        "merchantTransID": "string",
        "merchantOrderReference": "string",
        "merchantTransTime": "2019-08-24T14:15:22.123Z"
    },
    "storeInfo": {
        "mcc": "stri"
    },
    "tradeInfo": {
        "tradeType": "Hotel",
        "merchants": [
            {
                "merchantID": "string",
                "mcc": "stri",
                "merchantName": "string",
                "merchantAddress": {
                    "country": "str"
                }
            }
        ]
    },
    "transAmount": {
        "currency": "str"
    },
    "allowAuthentication": true,
    "networkTokenOnly": true,
    "returnURL": "string",
    "paymentMethod": {
        "recurringProcessingModel": "Subscription",
        "isFirstCITTxn": true,
        "type": "card",
        "card": {
            "encryptedCardInfo": "string",
            "cardInfo": {
                "cardNumber": "string",
                "expiryDate": "stri",
                "cvc": "stri",
                "holderName": "string"
            },
            "tokenValidDays": "1~365",
            "vaultID": "string"
        },
        "e-wallet": {
            "paymentBrand": "Alipay",
            "vaultID": "string",
            "planID": "string",
            "subOpenID": "string",
            "accountID": "string"
        },
        "buyNowPayLater": {
            "paymentBrand": "string",
            "vaultID": "string"
        },
        "googlePay": {
            "encryptedData": "string",
            "paymentBrand": "Visa",
            "tokenize": true,
            "vaultID": "string",
            "tokenValidDays": "1~365"
        },
        "merchantToken": {
            "value": "string"
        }
    },
    "authentication": {
        "type": "threeDSPage",
        "merchantRiskIndicator": {},
        "threeDS": {
            "threeDSRequestorChallengeInd": "01"
        }
    },
    "transInitiator": {
        "platform": "WEB",
        "deviceType": "Android",
        "deviceID": "string",
        "userRegion": "str",
        "osVersion": "string",
        "userCreateIP": "str",
        "browserInfo": {
            "acceptHeader": "string",
            "colorDepth": "st",
            "javaEnabled": true,
            "language": "string",
            "screenHeight": "string",
            "screenWidth": "string",
            "timeZoneOffset": "strin",
            "userAgent": "string"
        },
        "terminalID": "string"
    },
    "userInfo": {
        "nameEn": {
            "familyName": "string",
            "givenName": "string"
        },
        "nameLocal": {
            "familyName": "王",
            "givenName": "小明"
        },
        "nameZh": {
            "familyName": "string",
            "givenName": "string"
        },
        "homePhone": {
            "countryCode": "str",
            "subscriberSections": "string"
        },
        "mobilePhone": {
            "countryCode": "str",
            "subscriberSections": "string"
        },
        "workPhone": {
            "countryCode": "str",
            "subscriberSections": "string"
        },
        "email": "string",
        "reference": "string",
        "name": "string",
        "locale": "strin",
        "accountInfo": {
            "accountAgeIndicator": "notApplicable",
            "accountChangeDate": "string",
            "accountChangeIndicator": "thisTransaction",
            "accountCreationDate": "string",
            "passwordChangeDate": "string",
            "passwordChangeDateIndicator": "notApplicable",
            "purchasesLast6Months": "stri",
            "addCardAttemptsDay": "str",
            "pastTransactionsDay": "str",
            "pastTransactionsYear": "str",
            "paymentAccountAge": "string",
            "paymentAccountIndicator": "notApplicable",
            "deliveryAddressUsageDate": "string",
            "deliveryAddressUsageIndicator": "thisTransaction",
            "shippingNameIndicator": true,
            "suspiciousActivity": true
        },
        "deliveryAddress": {
            "city": "string",
            "country": "str",
            "addressLine1": "string",
            "addressLine2": "string",
            "addressLine3": "string",
            "postalCode": "string",
            "stateOrProvince": "str"
        },
        "billingAddress": {
            "city": "string",
            "country": "str",
            "addressLine1": "string",
            "addressLine2": "string",
            "addressLine3": "string",
            "postalCode": "string",
            "stateOrProvince": "str"
        }
    },
    "webhook": "string",
    "metadata": "string"
}

返回响应

🟢200成功
application/json
Headers

Bodyapplication/json

示例
{
    "result": {
        "code": "string",
        "message": "string",
        "pspResponseCode": "string",
        "pspMessage": "string"
    },
    "action": {
        "type": "threeDSRedirect",
        "threeDSData": {
            "url": "string",
            "method": "GET",
            "parameter": {
                "PaReq": "string",
                "MD": "string",
                "TermUrl": "string",
                "creq": "string",
                "threeDSMethodData": "string"
            }
        },
        "redirectData": {
            "url": "string",
            "method": "GET"
        },
        "walletData": {
            "paymentString": "string"
        },
        "econtext": {
            "accountID": "string",
            "accountName": "string",
            "walletBrandName": "string"
        }
    },
    "paymentMethod": {
        "accountUpdateIndicator": "Y",
        "paymentAccountReference": "string",
        "status": "Verifying",
        "failureCode": "string",
        "failureReason": "string",
        "merchantTransInfo": {
            "merchantTransID": "string",
            "merchantOrderReference": "string",
            "merchantTransTime": "2019-08-24T14:15:22.123Z"
        },
        "card": {
            "first6No": "string",
            "last4No": "stri",
            "paymentBrand": "string",
            "fundingType": "credit",
            "holderName": "string",
            "issuingBank": "string",
            "issuingCountry": "str",
            "issuerCountry": "str",
            "isCommercial": true
        },
        "token": {
            "value": "string",
            "expiryDate": "2019-08-24T14:15:22.123Z",
            "userReference": "string",
            "vaultID": "string",
            "fingerprint": "string",
            "createTime": "2019-08-24T14:15:22.123Z",
            "updateTime": "2019-08-24T14:15:22.123Z",
            "status": "disabled",
            "first6No": "string",
            "last4No": "stri"
        },
        "networkToken": {
            "status": "enabled",
            "supportDeviceBinding": true,
            "value": "string",
            "paymentBrand": "Visa ",
            "tokenID": "string",
            "first6No": "string",
            "last4No": "stri",
            "expiryDate": "stri",
            "paymentAccountReference": "string",
            "tokenReferenceID": "string"
        },
        "merchantToken": {
            "value": "string"
        },
        "onlineBanking": {
            "paymentBrand": "string"
        },
        "recurringReference": "string"
    },
    "authentication": {
        "type": "threeDSPage",
        "threeDS": {
            "mpiData": {
                "status": "Y",
                "transStatusReason": "st",
                "cardholderInfo": "string",
                "cavv": "string",
                "eci": "st",
                "dsTransID": "string",
                "threeDSVersion": "string"
            },
            "isFrictionless": "Y"
        }
    },
    "metadata": "string"
}
上一页
API Rules
下一页
PaymentMethod
Built with