![]() |
Payment Gateway - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Payment Gateway (/showthread.php?tid=60862) |
Payment Gateway - El Forum - 07-14-2014 [eluser]Unknown[/eluser] This looks to be the script snippet that call the payment gateway after user clicks the buy button which opens a credit card processor using Paypal API signature and credentials. How might this same code be salvaged to make a second payment button that redirects to another page after it is used to open up the credit card processor like the one before? <?php for ($i = 0; $i < count($tracks); $i++) { if (in_array($tracks[$i]['i_track_id'], $a_purchased)) { $s_link = 'href="' . base_url() . 'album/manage_purchased_track" class=""'; $s_link_text = 'Download Track'; } else { $s_link = 'href="[removed]{};" class="get-payment"'; $s_link_text = '$1.29'; } ?> |