我正在尝试使用 node.js 创建条带连接客户。但是,每次我提出请求时,它都会给我一个“无效的电话号码”错误。
我已经尝试了几种不同的电话号码和格式。
const opts: any = {
type: 'custom',
country: 'US',
email: user.email,
business_type: 'individual',
business_profile:{
url: 'www.blulight.tech'
},
individual:{
phone: user.phoneNumber,
email: user.email,
first_name: user.name.firstName,
last_name: user.name.lastName,
dob: {
day: user.dateOfBirth.day,
month: user.dateOfBirth.month,
year: user.dateOfBirth.year
},
address:{
line1: user.address.line1,
line2: user.address.line2,
postal_code: user.address.postal_code,
city: user.address.city,
state: user.address.state
},
ssn_last_4: user.dateOfBirth.ssn_last_4,
verification: {
document:{
back: documents[1].id,
front: documents[0].id,
}
}
},
tos_acceptance: {
date: Math.floor(Date.now() / 1000),
ip: user.ipAddress
}
};
Run Code Online (Sandbox Code Playgroud)
Run Code Online (Sandbox Code Playgroud)Not a valid …
node.js stripe-payments firebase typescript google-cloud-functions