Как отменить регулярный платеж через PayPal в Codeigniter
Я ввожу регулярные платежи на своем веб-сайте, и он работает. Но я не могу отменить подписку.
Как отменить периодическую подписку PayPal, используя codeigniter.
Я использовал этот код:
<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>
Любая помощь будет принята с благодарностью.
Заранее спасибо.