Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Paynet contribution


Recommended Posts

I'm having a headache with this one, it won't calculate properly.

If I have purchased products for, let's say 300 NOK and shipping are 150 NOK it's ok.

BUT if i purchase products for 1000 and shipping are 150 it totals 150 + 1. It won't work with purchases over 1000 NOK.


Could someone PLEASE take a look. I would be happy to provide some more help.


   function confirmation() {

  global $checkout_form_action;

     global $order, $currencies;


     $amount = number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->currencies[MODULE_PAYMENT_PAYNET_SETTLEMENTCURRENCY]['value'], 2) +  

               number_format($order->info['shipping_cost'] * $currencies->get_value(MODULE_PAYMENT_PAYNET_SETTLEMENTCURRENCY), 2);


   $checkout_form_action =   'https://www.paynet.no/terminal?'.













     return $confirmation_string;


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...