我正在使用我的沙盒凭据通过Flex令牌信用卡向CyberSource REST API支付款项。
我将buyerInformation.merchantCustomerId
设置为MH0gMJmBJTM2go0fac7argJkjGB3
,这是一个28个字符的字符串,用于在我自己的系统中标识客户。这是documentation on this field:
// Your identifier for the customer.
//
// When a subscription or customer profile is being created,
// the maximum length for this field for most processors is 30.
// Otherwise, the maximum length is 100.
有一些特定于处理器的详细信息,但总的来说,如果您的字符数不超过30个字符,那应该没问题。
我收到400 HTTP响应:
Message:Declined - One or more fields in the request contains invalid data
Reason:INVALID_DATA
Status:INVALID_REQUEST
Details:
- Field: buyerInformation.merchantCustomerId
- Reason: INVALID_DATA
当我查看控制台时,会看到交易详细信息。以下是一些数据:
Billing Information
First Name: John
Last Name: Doe
Address: XXXXXX
City: XXXXXXX
State/Province: CA
Zip/Postal Code: XXXXX
Country: US
Customer ID: MH0gMJmBJTM2go0fac7argJkjGB3
Device Fingerprint: Not Submitted
Request Information
Client App: REST API
Client Application Version: 1.0
Reason Code: 102
Reply Message: The field is invalid: purchaser_code
Reply: Success
Reply Code: 1
Applications:
- Credit Card Authorization
- Credit Card Settlement
Identity Code Type: VI
Credit Card Authorization
Authorization Code: 888888
Amount: 5,500.00 USD
Transaction Reference Number: 782132027354J3E9
Reply: Success
Reply Message: The field is invalid: purchaser_code
Reason Code: 102
Requested Amount: 5,500.00 USD
AVS: X - Match: address and 9-digit postal code match.
为什么CyberSource说我的merchantCustomerId
无效?我该怎么做才能纠正这个问题?