【发布时间】:2019-05-28 11:06:51
【问题描述】:
我已经使用 PayPal-PHP-SDK 实现了 PayPal Billing 订阅,一切正常,用户可以使用此代码从应用程序中取消订阅。
$agreementStateDescriptor = new AgreementStateDescriptor();
$agreementStateDescriptor->setNote("Suspending the Agreement.");
$agreement->suspend($agreementStateDescriptor, $apiContext);
但是如果用户从他的 PayPal 帐户中取消订阅,我的应用程序将不会收到通知,如何解决?有没有像 Stripe 之类的 webhook。
https://github.com/paypal/PayPal-PHP-SDK/
谢谢
【问题讨论】:
标签: php paypal paypal-ipn paypal-subscriptions