Stripe webhook不会发送带有php的事件

时间:2013-09-21 06:33:43

标签: php strip

我正在使用PHP中的Stripe支付网关。我在帐户设置中设置了webhook并发送了一个测试webhook,但我在webhook file中没有收到任何事件:

require_once('./lib/Stripe.php');
Stripe::setApiKey("sk_test_hxdlbNUxlCUVK6V8p5nbxl8G"); 
$body = @file_get_contents('php://input');
$event_json = json_decode($body);
$event_id = $event_json->id;
echo $event_id;

0 个答案:

没有答案