与Stripe通信发生意外错误。如果此问题仍然存在,请通过support@stripe.com与我们联系。 (网络错误[errno 26])

时间:2020-08-29 20:04:01

标签: php stripe-payments

我正在xampp,Windows 10上工作

$account = \Stripe\Account::create([
            'country' => 'US',
            'type' => 'custom',
            'requested_capabilities' => ['card_payments', 'transfers'],
          ]);
         $file = \Stripe\File::create([
            'purpose' => 'identity_document',
            'file' => fopen('../images/3.jpg', 'r'),
          ], [
            'stripe_account' => 'acct_xxx',
          ]);
          $verification = \Stripe\Account::update(
            'acct_xxxxx',
            [
              'company' => [
                'verification' => [
                  'document' => [
                    'front' => $file->id,
                  ],
                ],
              ],
            ]
          );

运行时会出现以下错误:

与Stripe通信发生意外错误。如果此问题仍然存在,请通过support@stripe.com与我们联系。 (网络错误[errno 26]:)

我尝试更新TLS版本,未选中1.0和1.0,仅启用1.2,但这没有帮助。

1 个答案:

答案 0 :(得分:0)

您应该在同一台计算机上运行Stripe reachability tool,以确保能够与API通信。

如果这是间歇性错误,虽然在这种情况下建议使用automatic retries,但您也可以配置idempotency keys