Eva*_*mas 6 node.js stripe-payments firebase typescript google-cloud-functions
我正在尝试使用 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 phone number at Function.generate (/srv/node_modules/stripe/lib/Error.js:49:16) at IncomingMessage.res.once (/srv/node_modules/stripe/lib/StripeResource.js:167:39) at Object.onceWrapper (events.js:313:30) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickDomainCallback (internal/process/next_tick.js:219:9)
| 归档时间: |
|
| 查看次数: |
2835 次 |
| 最近记录: |