如何在codeigniter中通过paypal取消定期付款

时间:2016-07-14 14:04:22

标签: php codeigniter paypal paypal-subscriptions recurring-billing

我在我的网站上实施经常性付款并且正在运作。但我无法取消订阅。

如何使用codeigniter取消paypal定期订阅。

我使用过这段代码:

 <form action = "https://www.sandbox.paypal.com/cgi-bin/webscr" method = "post" id = "paypal_checkout">
<input type = "hidden" name = "cmd" value = "_xclick-subscriptions">
<input type = "hidden" name = "business" value = "' . $this->business . '"/>
<input type = "hidden" name = "no_shipping" value = "1">
<input type = "hidden" name = "a3" value = "' . $this->items[0]['price'] . '">
<input type = "hidden" name = "p3" value = "' . $this->items[0]['month'] . '">
<input type = "hidden" name = "t3" value = "M">
<input type = "hidden" name = "src" value = "1">
<input type = "hidden" name = "sra" value = "1">
<input type = "hidden" name = "item_name" value = "' . $this->items[0]['name'] . ' Package" />
<input type = "hidden" name = "lc" value = "' . $this->location . '" />
<input type = "hidden" name = "return" value = "' . $this->returnurl . '" />
<input type = "hidden" name = "cbt" value = "' . $this->returntxt . '" />
<input type = "hidden" name = "cancel_return" value = "' . $this->cancelurl . '" />
<input type="hidden" name="rm" value="2" />
<input type = "hidden" name = "custom" value = "' . $this->items[0]['package_id'] . '" />
<input type = "button" name = "submit" />
</form>

任何形式的帮助都将受到高度赞赏。

提前致谢。

0 个答案:

没有答案