【发布时间】:2021-04-03 13:32:51
【问题描述】:
require 'vendor/autoload.php';
\Stripe\Stripe::setApiKey('sk_test_51H9XLtEGCwEOAaDQ16lnivam11YlNQA8BqwOzAZLG7tu00oSLz8A6h');
echo "Hello World"; // to check whether endpoint is being hit by stripe. YES $body = @file_get_contents('php://input'); $event_json = json_decode($body);
回显“$event_json”;
?>
【问题讨论】:
-
500 错误代码表示您的服务器出现问题。您能否检查您的 PHP 和/或 Web 服务器错误日志以了解错误并提供详细信息?
-
@JustinMichael 谢谢,这个问题已经解决,但需要知道条带 webhook 如何与 s2member(一个 wordpress 插件)链接。再次感谢。
-
如果您有新问题,您应该发布一个尽可能详细的单独问题。
标签: php stripe-payments