我正在使用Braintree的Node.js SDK,我们遇到了一个关于帐号的问题,它接受垃圾桶,如11235 *** sdfsf ** 81321这是错误的。有人可以帮忙吗? Braintree验证如何进行验证?
merchantAccountParams = {
individual: {
firstName: "Jane",
lastName: "Doe",
email: "jane@14ladders.com",
phone: "5553334444",
dateOfBirth: "1981-11-19",
ssn: "456-45-4567",
address: {
streetAddress: "111 Main St",
locality: "Chicago",
region: "IL",
postalCode: "60622"
}
},
business: {
legalName: "Jane's Ladders",
dbaName: "Jane's Ladders",
taxId: "98-7654321",
address: {
streetAddress: "111 Main St",
locality: "Chicago",
region: "IL",
postalCode: "60622"
}
},
funding: {
descriptor: "Blue Ladders",
destination: braintree.MerchantAccount.FundingDestination.Bank,
email: "funding@blueladders.com",
mobilePhone: "5555555555",
accountNumber: "11235***sdfsf**81321",
routingNumber: "071101307"
},
tosAccepted: true,
masterMerchantAccountId: "14ladders_marketplace",
id: "blue_ladders_store"
};
gateway.merchantAccount.create(merchantAccountParams, function (err, result) {
});
答案 0 :(得分:0)
我们可以从客户端验证用户输入,然后我们可以向BrainTree发送有效值。帐号验证结果,我们只有在向BrainTree发送值后才会得到,它们会在其对象中提供结果(使用BrainTree dll)作为响应值。
有关详细信息,请参阅this文章。