Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Paynet contribution


Guest

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?'.

                               'totam='.$amount.

                               '&ttype='.MODULE_PAYMENT_PAYNET_TTYPE.

                               '&descr='.STORE_NAME.

                               '&utref='.$order->customer['email_address'].

                               '&curry='.MODULE_PAYMENT_PAYNET_SETTLEMENTCURRENCY.

                               '&payid='.MODULE_PAYMENT_PAYNET_PAYID.

                               '&langu=NO'.

                               '&mrurl='.MODULE_PAYMENT_PAYNET_MRURL.

                               '&mcurl='.MODULE_PAYMENT_PAYNET_MCURL.

                               '&maurl='.MODULE_PAYMENT_PAYNET_MAURL.

                               '&mlurl='.MODULE_PAYMENT_PAYNET_MLURL;

 

     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.

Guest
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...