我想在 authorize.net 中添加单个客户的多个付款资料。经过长时间的搜索,我找到了在 authorize.net 社区上发布的帖子,请参阅链接。在此链接中,接受的解决方案中有一个 xml 格式的数据,我将其转换并通过邮递员发送,然后我面临以下错误
“命名空间‘AnetApi/xml/v1/schema/AnetApiSchema.xsd’中的元素‘createCustomerProfileRequest’在命名空间‘AnetApi/xml/v1/schema/AnetApiSchema.xsd’中有无效的子元素‘_xmlns’。”
我发送的 json 是:-
{
"createCustomerProfileRequest": {
"merchantAuthentication": {
"name": "name",
"transactionKey": "transactionKey"
},
"refId": "1361101257555",
"profile": {
"merchantCustomerId": "2CLINC056",
"description": "hiiiiii.",
"email": "",
"paymentProfiles": [
{
"customerType": "individual",
"billTo": {
"firstName": "Joe",
"lastName": "Test",
"company": "CompanyA",
"address": "hello",
"city": "Bangalore",
"state": "Delhi",
"zip": "560078",
"country": "IN",
"phoneNumber": "415-555-1212",
"faxNumber": "415-555-1313"
},
"payment": {
"creditCard": {
"cardNumber": "370000000000002",
"expirationDate": "2029-12"
}
}
},
{
"customerType": "individual",
"billTo": {
"firstName": "Joe",
"lastName": "Test",
"company": "CompanyA",
"address": "vel",
"city": "Chennai",
"state": "AK",
"zip": "560089",
"country": "US",
"phoneNumber": "415-555-1212",
"faxNumber": "415-555-1313"
},
"payment": {
"creditCard": {
"cardNumber": "38000000000006",
"expirationDate": "2029-12"
}
}
}
]
},
"validationMode": "testMode",
"_xmlns": "AnetApi/xml/v1/schema/AnetApiSchema.xsd"
}
}
开发者链接