Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用未定义的常量INTL\U IDNA\U VARIANT\U UTS46在条带上付款时出错,Laravel_Laravel_Stripe Payments_Cpanel_Laravel 6 - Fatal编程技术网

使用未定义的常量INTL\U IDNA\U VARIANT\U UTS46在条带上付款时出错,Laravel

使用未定义的常量INTL\U IDNA\U VARIANT\U UTS46在条带上付款时出错,Laravel,laravel,stripe-payments,cpanel,laravel-6,Laravel,Stripe Payments,Cpanel,Laravel 6,我在stripe Laravel上付款时出现此错误 使用未定义的常量INTL_IDNA_VARIANT_UTS46-假定 “国际IDNA变体UTS46” 我的控制器: $stripe_secret = config('services.stripe.secret'); $stripe = Stripe::make($stripe_secret); $charge = $stripe->charges()->create([ 'currency' => 'USD',

我在stripe Laravel上付款时出现此错误

使用未定义的常量INTL_IDNA_VARIANT_UTS46-假定 “国际IDNA变体UTS46”

我的控制器:

$stripe_secret = config('services.stripe.secret');
$stripe = Stripe::make($stripe_secret);
$charge = $stripe->charges()->create([
    'currency' => 'USD',
    'amount' => (float)$amount,
    'source' => $payment_token,
    'description' => '',
    'receipt_email' => $receipt_email,
]);
描述您遇到的问题。要解决此问题,您应该避免guzzle 6.5.0