Welcome Guest, Not a member yet? Register   Sign In
Payment Gateway
#1

[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';
}
?&gt;




Theme © iAndrew 2016 - Forum software by © MyBB