Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/229.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
Php 条带API在编辑模式Wordpress下不工作_Php_Wordpress_Stripe Payments - Fatal编程技术网

Php 条带API在编辑模式Wordpress下不工作

Php 条带API在编辑模式Wordpress下不工作,php,wordpress,stripe-payments,Php,Wordpress,Stripe Payments,对于wordpress网站,我使用Stripe的checkout API来处理付款。它在前端工作正常。该站点重定向到Stripe的签出页面,但当我想编辑Wordpress管理面板中的内容时,它不工作,并出现以下错误: Uncaught Error: Class 'Stripe\Stripe' 在我的第643页中,我包含了Stripe库 <?php require_once('stripe-php/init.php');?> 看起来这个init.php文件只是添加到网站的前端。

对于wordpress网站,我使用Stripe的checkout API来处理付款。它在前端工作正常。该站点重定向到Stripe的签出页面,但当我想编辑Wordpress管理面板中的内容时,它不工作,并出现以下错误:

Uncaught Error: Class 'Stripe\Stripe'
在我的第643页中,我包含了Stripe库

<?php require_once('stripe-php/init.php');?>


看起来这个init.php文件只是添加到网站的前端。我如何才能改变这一点,它将工作在网站的管理部分以及

您好solidesuus,您是如何安装条带绑定的?从您的require语句来看,您似乎进行了手动安装,并将stripe php的最新版本复制到了项目的根目录中——对吗?另外,stripe php是一个服务器端库,不能在前端工作。为此,您需要Stripe.js。最后,我要提到的是,与Stripe+Wordpress集成的最常见方式是通过插件,你有没有尝试过。您好solidesuus,您是如何安装条带绑定的?从您的require语句来看,您似乎进行了手动安装,并将stripe php的最新版本复制到了项目的根目录中——对吗?另外,stripe php是一个服务器端库,不能在前端工作。为此,您需要Stripe.js。最后,我要提到的是,与Stripe+Wordpress集成的最常见方式是通过插件,你有没有尝试过。