小编Eva*_*mas的帖子

条带连接创建客户的正确电话号码格式

我正在尝试使用 node.js 创建条带连接客户。但是,每次我提出请求时,它都会给我一个“无效的电话号码”错误。

我已经尝试了几种不同的电话号码和格式。

  • “+10000000000”
  • “0000000000”
  • “+1000-000-0000”
  • “000-000-0000”
    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)
Not a valid …
Run Code Online (Sandbox Code Playgroud)

node.js stripe-payments firebase typescript google-cloud-functions

6
推荐指数
1
解决办法
2835
查看次数