marin.lucic Posted March 10, 2015 Share Posted March 10, 2015 Hi,I have a t-com payment module and I have a problem with the last step in the transaction. When the amount eg. 35.00 then the status of the transaction is payment accepted, in the event that, for example. 35.50 occurs payment error and writes a message that lacks .50 Please can you help me. Prestashop 1.6.0.13 PHP 5.3 Pictures attached. Link to comment Share on other sites More sharing options...
marin.lucic Posted March 15, 2015 Author Share Posted March 15, 2015 I have prestashop 1.6. but plugin is written for version 1.5. Problem is in validation code, but I don't know where. Part od code: $currency = $this->context->currency; $payment_method = 'Card'; $message = 'Some text'; $extra_vars = array( 'transaction_id'=> $tid ); $payway->validateOrder($cart->id, Configuration::get('PS_OS_PAYMENT'), $TotalAmount, $payment_method, $message, $extra_vars , (int)$currency->id, false, $customer->secure_key); $redirectURL = Tools::getShopDomain(true, true).'/prestashop/index.php?controller=order-confirmation&id_cart='.$cart->id.'&id_module='.$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key; Tools::redirect($redirectURL); $this->setTemplate('thank_you.tpl'); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now