Hi everybody, i'm posting here that seems the most appropriate thread to me... hopefully!
I'd like some help for this issue.
I'm implementing a credit card module which redirects the user on a bank website using the curl_setopt() function, so i have this code:
$data="id=$id&password=$password&action=$action&amt=$amt¤cycode=$currencyc ode&langid=$langid&responseurl=$responseurl&errorurl=$errorurl&trackid=$trackid& udf1=$udf1";
$curl_handle=curl_init();
curl_setopt($curl_handle,CURLOPT_URL,bank link xxxx');
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $data);
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
$token=explode(":",$buffer);
$tid=$token[0];
my payment URL will be something like:
$this->form_action_url = 'bank link xxx/payment.jsp?PaymentID='.$tid;
Now, if i add the "curl" code in the class constructor the module is working perfectly but the amount sent to the bank page is not correct in case of coupons, because the array $order has not been processed for taxes and coupons yet. But if i add the "curl code" into the "process_button" function (where the array order is already updated) i cannot find a way to change the "form action" so i cannot set the proper payment id.
Do you guys could please help me to have this sorted because i can't find a solution!! thanx a lot everyone :)


Reply With Quote
