【发布时间】:2017-09-27 06:34:58
【问题描述】:
我一直在尝试在 laravel 中集成条带支付。
但是当我尝试创建条带客户时,它不会创建。
这是我的代码,
try
{
$customer = \Stripe\Customer::create(array(
'email' => $this->user_email,
'card' => $this->stripe_token
));
echo "<pre>";
print_r($customer);exit;
$charge = \Stripe\Charge::create(array(
'customer' => $customer->id,
'amount' => $amountstripe,
'currency' => 'EUR'
));
}
我收到一条错误消息,例如,
无法连接到 Stripe (https://api.stripe.com/v1/customers)。请检查您的互联网连接,然后重试。如果此问题仍然存在,您应该通过https://twitter.com/stripestatus 查看 Stripe 的服务状态,或通过 support@stripe.com 告知我们。
(网络错误 [errno 6]:无法解析主机:api.stripe.com)
我该如何解决这个问题?
【问题讨论】:
-
"Could not resolve host: api.stripe.com" 这意味着您的互联网无法与
api.stripe.com建立连接。
标签: laravel curl stripe-payments