Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Paymate Support Thread


Paymate

Recommended Posts

I am using the CRE Loaded 6.2 version of osCommerce which is based on osCommerce 2.2. I have integrated the paymatespi_1_2 code. I found I needed to change the url for the call to www.paymate.com ( from localhost as per below). I now seem to make the connection ok & return to osCommerce.

 

I have a few problems:

1. The state (eg NSW) doesn't seem to be passed to PayMate for some reason (A minor one)

2. After putting the the dummy credit card number below (which worked) I am returned to the "Payment Information" (checkout_payment.php) page instead of the finished page (checkout_success.php)

3. The cart still has the order in it (I suspect this is due to the return to the incorrect page)

 

Any guidance anyone could provide to help narrow my investigation would be appreciated.

 

Thanks.

Link to comment
Share on other sites

  • 2 months later...

Hello,

 

I have used Paymate as a Credit Card payment function on a clients website. The issue that we are experiencing is that when a client makes a payment via Paymate and it leaves the store I have used Digistore. The add-on that I have used for Paymate is from Oscommerce. The store owner or the client does not get the following:

(a) The Client does not get order confirmation by email after paying with Credit Card via Paymate.

(B) The store owner does not receive a confirmation e-mail of the payment or the order.

© The order does not show up in Digistore.

 

Look forward to your reply and how we could fix or work around this issue.

Link to comment
Share on other sites

Hello,

 

I have used Paymate as a Credit Card payment function on a clients website. The issue that we are experiencing is that when a client makes a payment via Paymate and it leaves the store I have used Digistore. The add-on that I have used for Paymate is from Oscommerce. The store owner or the client does not get the following:

(a) The Client does not get order confirmation by email after paying with Credit Card via Paymate.

(B) The store owner does not receive a confirmation e-mail of the payment or the order.

© The order does not show up in Digistore.

 

Look forward to your reply and how we could fix or work around this issue.

What version did you install?

Link to comment
Share on other sites

I have used the version that is used in this thread have done post #20

OK, I have not made the change, but I do have

 

// class constructor

function paymatespi() {

global $order;

 

$this->code = 'paymatespi';

$this->title = MODULE_PAYMENT_SPI_PAYMATE_TEXT_TITLE;

$this->public_title = MODULE_PAYMENT_SPI_PAYMATE_TEXT_PUBLIC_TITLE;

$this->description = MODULE_PAYMENT_SPI_PAYMATE_TEXT_DESCRIPTION;

$this->enabled = ((MODULE_PAYMENT_SPI_PAYMATE_STATUS == 'True') ? true : false);

$this->sort_order = MODULE_PAYMENT_SPI_PAYMATE_SORT_ORDER;

 

 

if ((int)MODULE_PAYMENT_SPI_PAYMATE_ORDER_STATUS_ID > 0) {

$this->order_status = MODULE_PAYMENT_SPI_PAYMATE_ORDER_STATUS_ID;

}

 

if (is_object($order)) $this->update_status();

 

$this->form_action_url = 'https://www.paymate.com.au/PayMate/ExpressPayment';

// uncomment for New Zealand websites: 'https://www.paymate.com.au/PayMate/GenExpressPayment';

//$this->form_action_url = 'http://localhost:8080/npaymate/expressPaymentAU.jsf';

}

 

// class methods

Link to comment
Share on other sites

  • 1 month later...
OK, I have not made the change, but I do have

 

// class constructor

function paymatespi() {

global $order;

 

$this->code = 'paymatespi';

$this->title = MODULE_PAYMENT_SPI_PAYMATE_TEXT_TITLE;

$this->public_title = MODULE_PAYMENT_SPI_PAYMATE_TEXT_PUBLIC_TITLE;

$this->description = MODULE_PAYMENT_SPI_PAYMATE_TEXT_DESCRIPTION;

$this->enabled = ((MODULE_PAYMENT_SPI_PAYMATE_STATUS == 'True') ? true : false);

$this->sort_order = MODULE_PAYMENT_SPI_PAYMATE_SORT_ORDER;

 

 

if ((int)MODULE_PAYMENT_SPI_PAYMATE_ORDER_STATUS_ID > 0) {

$this->order_status = MODULE_PAYMENT_SPI_PAYMATE_ORDER_STATUS_ID;

}

 

if (is_object($order)) $this->update_status();

 

$this->form_action_url = 'https://www.paymate.com.au/PayMate/ExpressPayment';

// uncomment for New Zealand websites: 'https://www.paymate.com.au/PayMate/GenExpressPayment';

//$this->form_action_url = 'http://localhost:8080/npaymate/expressPaymentAU.jsf';

}

 

// class methods

Hi

What is the current correct link for using Paymate from New Zealand.

I'm aware that they changed the main URL to www.paymate.com for all links so in paymatespi.php I am using the following:

 

$this->form_action_url = 'https://www.paymate.com/PayMate/GenExpressPayment';

// uncomment for New Zealand websites: 'https://www.paymate.com/PayMate/GenExpressPayment';

//$this->form_action_url = 'http://localhost:8080/npaymate/expressPaymentAU.jsf';

bit it doesn't seem to receive any of the posted variables.

I just get an express payment page with no details filled in.

I have checked that I have the correct account details in admin.

Any ideas?

 

Many thanks for your time.

 

mouli

Link to comment
Share on other sites

  • 2 months later...
I am using the CRE Loaded 6.2 version of osCommerce which is based on osCommerce 2.2. I have integrated the paymatespi_1_2 code. I found I needed to change the url for the call to www.paymate.com ( from localhost as per below). I now seem to make the connection ok & return to osCommerce.

 

I have a few problems:

1. The state (eg NSW) doesn't seem to be passed to PayMate for some reason (A minor one)

2. After putting the the dummy credit card number below (which worked) I am returned to the "Payment Information" (checkout_payment.php) page instead of the finished page (checkout_success.php)

3. The cart still has the order in it (I suspect this is due to the return to the incorrect page)

 

Any guidance anyone could provide to help narrow my investigation would be appreciated.

 

Thanks.

 

I am having the exact same problems, any thoughts from anyone?

Link to comment
Share on other sites

  • 4 months later...

This was racking my brain for a few days, but finally worked it out, mainly due to Paymate changing their side of things and not letting anyone know about it, two thumbs up for that one Paymate :D

 

Make sure in your admin area for Paymate you set the email address to be [email protected] and the user is testuser. Then in \catalog\includes\modules\payment\paymatespi.php find the lines of code where its setting the URL, around line 35, comment out all of them and enter this one in:

 

$this->form_action_url = 'https://www.paymate.com/PayMate/TestExpressPayment?mid=testuser';

 

Then those test credit card numbers will work:

 

4564456445644564 will return Approved and;

5424000000000015 will return Declined.

 

They both should return you to your site with the stock updated (trying to figure out how to integrate with QT Pro at the moment)

 

Once you are ready to go live, comment out that code and add this code underneath it:

 

$this->form_action_url = 'https://www.paymate.com/PayMate/ExpressPayment?mid=testuser';

 

where testuser is your username from Paymate.

 

I have not tested the live one as I want to finalise the QT Pro stock handling first, but it should work.

Link to comment
Share on other sites

I've done the QT Pro stock update with Paymate aswell. Just got it working. It was doubling up the subtraction.

 

in

 

\catalog\paymate_checkout_preprocess.php

 

Find code:

 

if ((DOWNLOAD_ENABLED != 'true') || (!$stock_values['products_attributes_filename'])) {
         $stock_left = $stock_values['products_quantity'] - $order->products[$i]['qty'];
       } else {
         $stock_left = $stock_values['products_quantity'];
       }

 

and replace with:

 

if ((DOWNLOAD_ENABLED != 'true') || (!$stock_values['products_attributes_filename'])) {
         $stock_left = $stock_values['products_quantity']; // Removed for doubling up - $order->products[$i]['qty'];
       } else {
         $stock_left = $stock_values['products_quantity'];
       }

 

Any questions just ask.

Link to comment
Share on other sites

  • 4 weeks later...
I am using the CRE Loaded 6.2 version of osCommerce which is based on osCommerce 2.2. I have integrated the paymatespi_1_2 code. I found I needed to change the url for the call to www.paymate.com ( from localhost as per below). I now seem to make the connection ok & return to osCommerce.

 

I have a few problems:

1. The state (eg NSW) doesn't seem to be passed to PayMate for some reason (A minor one)

2. After putting the the dummy credit card number below (which worked) I am returned to the "Payment Information" (checkout_payment.php) page instead of the finished page (checkout_success.php)

3. The cart still has the order in it (I suspect this is due to the return to the incorrect page)

 

Any guidance anyone could provide to help narrow my investigation would be appreciated.

 

Thanks.

 

I am having the same problem.

I have set the zones with the Australian states.

I have found this line on catalog/includes/classes/order.php.

'state' => ((tep_not_null($customer_address['entry_state'])) ? $customer_address['entry_state'] : $customer_address['zone_name']),

What does this do? It is diferenct from the other passing statements. Should I just change it to the following statement?

'state' => $customer_address['entry_state'],

 

Thanks.

Link to comment
Share on other sites

I am using the CRE Loaded 6.2 version of osCommerce which is based on osCommerce 2.2. I have integrated the paymatespi_1_2 code. I found I needed to change the url for the call to www.paymate.com ( from localhost as per below). I now seem to make the connection ok & return to osCommerce.

 

I have a few problems:

1. The state (eg NSW) doesn't seem to be passed to PayMate for some reason (A minor one)

2. After putting the the dummy credit card number below (which worked) I am returned to the "Payment Information" (checkout_payment.php) page instead of the finished page (checkout_success.php)

3. The cart still has the order in it (I suspect this is due to the return to the incorrect page)

 

Any guidance anyone could provide to help narrow my investigation would be appreciated.

 

Thanks.

 

Hey I got a workaround for this problem.

First you got to make sure that the state is been saved on the database by:

- Making sure State was set to True in admin/Configuration/Customer Details

- Making sure Country and Zone are correct in admin/Configuration/My Store

 

In my case, I had to delete all the states saved as zones on the admin/Zones in order to record the states on the db.

 

If it does not work, check this thread or google for a solution.

http://www.oscommerce.com/forums/index.php?showtopic=330079

 

After you ensure that states are been recored on the database, change the paymate_checkout_preprocess.php file.

 

Find at the end of the file.

 

//echo "do nothing";

if (isset($$payment->form_action_url)) {

$form_action_url = $$payment->form_action_url;

 

and change the line

$form_action_url = $$payment->form_action_url;

to

$form_action_url = $$payment->form_action_url . '?regindi_state=' . $order->customer['state'];

 

This will pass the state parameter via url.

 

It is just a workaround. If anyone has the proper solution, please post it.

 

If you use the test express payment (this->form_action_url = 'https://www.paymate.com/PayMate/TestExpressPayment?mid=testuser';)

 

change from

?regindi_state=

to

&regindi_state=

 

Please let me know how it goes.

 

Cheers.

Edited by dan.akio
Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...

Hi all,

 

i have installed paymatespi 1.2 and im having a few issues.....

 

at the checkout im getting a redirect error http://localhost:8080/npaymate/expressPaymentAU.jsf so its not connecting to paymate at all

also in the admin side in the setting up of the module where it have merchant id and the blank box....what am i meant to be putting in there??

 

thanks

Link to comment
Share on other sites

  • 2 weeks later...

It looks like there is a possibility to send order details through to to paymate so that the customer's paymate receipt shows the products ordered.

 

Anyone know what those parameters are or how to implement it into this contribution?

Link to comment
Share on other sites

  • 2 months later...

Announcing the beta release of Payment Sentinel Gateway solution.

 

Offering enhanced risk assessment service on top of the general payment gateway solution.

 

Now integrated into osCommerce as a payment module.

 

For more information check: http://addons.oscommerce.com/info/6946

 

General info: http://www.paymate.com/sentinel

 

Tech info: http://www.paymate.com/cms/index.php?optio...tent&id=199

 

Download: http://www.paymate.com/cms/images/paymate-...php-sdk-2.0.zip

Link to comment
Share on other sites

  • 10 months later...

Hello,

 

I have got Ultimate SEO URLs v2.2d installed on a website and the issue that is happening is that when someone goes to pay via paymate and they confirm the order instead of being sent back to checkout_confirmation.php they get sent back to login.php. I have also had a feeling that this is happening with Paypal to. Does anyone have any ideas how we could resolve this loop issue asap.

 

Thanks

 

Jess

Link to comment
Share on other sites

  • 1 year later...

Hi all, I realise there is not much activity on this thread but thought I would have a go.

 

I've just installed the Paymate SPI module and everything seemed to go fairly well except for the follow couple of issues.

 

1. I have 2 orders created in the system when someone pays with Paymate. The first order has a status of Prepayment, the second is Pending. It looks like the system creates the first order and once its paid, recreates the order as a second copy (this one has the transaction ID and status filled in). Does anyone else have this happen? What I would have thought would have happened is an order is created (Prepayment), customer pays (or not, maybe they forgot to click Confirm), and the order either changes status or remains. I suspect after calling paymate_checkout_preprocess.php its calling checkout_process.php (Hence creating the 2nd order) and then finishing.

 

2. The order email that is sent to the customer and myself had an order number of 0, despite the system having (2) orders with the correct order number (in this case 2609/2610, see above). Could this order number error be related to above?

 

I'm fairly comfortable with php and going to start investigating now, but just wondering if anyone has had a similar issue and if they have fixed it or not.

 

Thanks

Scott

Link to comment
Share on other sites

Sometimes is smarter to investigate before writing :)

 

I had the remove_idle_order.php function in the wrong directory, I uploaded it to ext/paymate not ext/paymate/functions (despite creating functions). I think that will be the problem as it would have removed the first order. Hopefully that fixes the second problem as well.

 

Cheers :)

Link to comment
Share on other sites

  • 2 months later...

In case anyone is still looking at this forum and trying to figure out how to get this contribution to work here is a little info I have found while trying to incorporate it into my oscommerce 2.3.1 shop.

 

Thanks to daoutlawz for his post, it helped me a lot:

Once you are ready to go live, comment out that code and add this code underneath it:

 

$this->form_action_url = 'https://www.paymate.com/PayMate/ExpressPayment?mid=testuser';

 

where testuser is your username from Paymate.

 

 

After run a test payment through I put in the correct info for my paymate account and received the same message as dhindry

Payment currency: *

Merchant is requesting a foreign currency payment and their account is not set up to do so

 

So I viewed the page source for the paymate payment page and found a bunch of hidden fields that it seems you can change by passing them values via the url. For example one is currency, so by changing the url to this :

 

 

$this->form_action_url = 'https://www.paymate.com/PayMate/ExpressPayment?mid=testuser&currency=NZD';

 

I was able to change the currency to NZ dollars and remove the error message above.

 

I remember seeing another post where someone wanted to give the buyer the ability to change the payment value, you can do this by passing the parameter amt_editable with the value 'YES'

 

 

$this->form_action_url = 'https://www.paymate.com/PayMate/ExpressPayment?mid=testuser&amt_editable=YES';

 

There are other parameters that are listed there so have a look. I hope this helps those of you setting up this contribution.

Link to comment
Share on other sites

  • 1 year later...

hey all, Hoping someone is still monitoring this. I've been working on integrating Paymate into my Webstore at www.wilderlandorg.nz\shop. Everything was going swimmingly until I reach checkout_confirmation.php which throws a blank it seems nothing is working between lines 101 and 295. can anybody see why? cheers for aid.I'm going to upload a 2.3.3 installation instruction file once I get this working.

 

The File:

 

<?php
/*
 $Id$
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com
 Copyright (c) 2010 osCommerce
 Released under the GNU General Public License
*/
 require('includes/application_top.php');
// if the customer is not logged on, redirect them to the login page
 if (!tep_session_is_registered('customer_id')) {
   $navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT));
   tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
 }
// if there is nothing in the customers cart, redirect them to the shopping cart page
 if ($cart->count_contents() < 1) {
   tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
 }
// avoid hack attempts during the checkout procedure by checking the internal cartID
 if (isset($cart->cartID) && tep_session_is_registered('cartID')) {
   if ($cart->cartID != $cartID) {
  tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
   }
 }
// if no shipping method has been selected, redirect the customer to the shipping method selection page
 if (!tep_session_is_registered('shipping')) {
   tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
 }
 if (!tep_session_is_registered('payment')) tep_session_register('payment');
 if (isset($HTTP_POST_VARS['payment'])) $payment = $HTTP_POST_VARS['payment'];
 if (!tep_session_is_registered('comments')) tep_session_register('comments');
 if (isset($HTTP_POST_VARS['comments']) && tep_not_null($HTTP_POST_VARS['comments'])) {
   $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
 }

//start Paymate change 08-2007
 if(tep_session_is_registered('order_id')) {
require('ext/paymate/functions/remove_idle_order.php');
tep_remove_idle_order($_SESSION['order_id']);
tep_session_unregister('order_id');
 }
//end Paymate change 08-2007
// load the selected payment module
 require(DIR_WS_CLASSES . 'payment.php');
 $payment_modules = new payment($payment);
 require(DIR_WS_CLASSES . 'order.php');
 $order = new order;
 $payment_modules->update_status();
 if ( ($payment_modules->selected_module != $payment) || ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) {
   tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED), 'SSL'));
 }
 if (is_array($payment_modules->modules)) {
   $payment_modules->pre_confirmation_check();
 }
// load the selected shipping module
 require(DIR_WS_CLASSES . 'shipping.php');
 $shipping_modules = new shipping($shipping);
 require(DIR_WS_CLASSES . 'order_total.php');
 $order_total_modules = new order_total;
 $order_total_modules->process();
// Stock Check
 $any_out_of_stock = false;
 if (STOCK_CHECK == 'true') {
   for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
  if (tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty'])) {
    $any_out_of_stock = true;
  }
   }
   // Out of Stock
   if ( (STOCK_ALLOW_CHECKOUT != 'true') && ($any_out_of_stock == true) ) {
  tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
   }
 }
 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_CONFIRMATION);
 $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
 $breadcrumb->add(NAVBAR_TITLE_2);
 require(DIR_WS_INCLUDES . 'template_top.php');
?>
<h1><?php echo HEADING_TITLE; ?></h1>
<?php
//start Paymate change 08-2007
 if($$payment->title != MODULE_PAYMENT_SPI_PAYMATE_TEXT_TITLE) {
//end Paymate change 08-2007
 if (isset($$payment->form_action_url)) {
   $form_action_url = $$payment->form_action_url;
 } else {
   $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
 }
 echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');

//start Paymate change 08-2007
}
//end Paymate change 08-2007
?>
<?php
 if (is_array($payment_modules->modules)) {
   if ($confirmation = $payment_modules->confirmation()) {
?>
 <h2><?php echo HEADING_PAYMENT_INFORMATION; ?></h2>
 <div class="contentText">
   <table border="0" cellspacing="0" cellpadding="2">
  <tr>
    <td colspan="4"><?php echo $confirmation['title']; ?></td>
  </tr>
<?php
  if (isset($confirmation['fields'])) {
    for ($i=0, $n=sizeof($confirmation['fields']); $i<$n; $i++) {
?>
  <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td class="main"><?php echo $confirmation['fields'][$i]['title']; ?></td>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
    <td class="main"><?php echo $confirmation['fields'][$i]['field']; ?></td>
  </tr>
<?php
    }
  }
?>
   </table>
 </div>
<div class="contentContainer">
 <h2><?php echo HEADING_SHIPPING_INFORMATION; ?></h2>
 <div class="contentText">
   <table border="0" width="100%" cellspacing="1" cellpadding="2">
  <tr>
<?php
 if ($sendto != false) {
?>
    <td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
	  <tr>
	    <td><?php echo '<strong>' . HEADING_DELIVERY_ADDRESS . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
	  </tr>
	  <tr>
	    <td><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />'); ?></td>
	  </tr>
<?php
   if ($order->info['shipping_method']) {
?>
	  <tr>
	    <td><?php echo '<strong>' . HEADING_SHIPPING_METHOD . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
	  </tr>
	  <tr>
	    <td><?php echo $order->info['shipping_method']; ?></td>
	  </tr>
<?php
   }
?>
    </table></td>
<?php
 }
?>
    <td width="<?php echo (($sendto != false) ? '70%' : '100%'); ?>" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
 if (sizeof($order->info['tax_groups']) > 1) {
?>
	  <tr>
	    <td colspan="2"><?php echo '<strong>' . HEADING_PRODUCTS . '</strong> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
	    <td align="right"><strong><?php echo HEADING_TAX; ?></strong></td>
	    <td align="right"><strong><?php echo HEADING_TOTAL; ?></strong></td>
	  </tr>
<?php
 } else {
?>
	  <tr>
	    <td colspan="3"><?php echo '<strong>' . HEADING_PRODUCTS . '</strong> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
	  </tr>
<?php
 }
 for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
   echo '		  <tr>' . "\n" .
	 '		    <td align="right" valign="top" width="30">' . $order->products[$i]['qty'] . ' x</td>' . "\n" .
	 '		    <td valign="top">' . $order->products[$i]['name'];
   if (STOCK_CHECK == 'true') {
  echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
   }
   if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
  for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
    echo '<br /><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
  }
   }
   echo '</td>' . "\n";
   if (sizeof($order->info['tax_groups']) > 1) echo '		    <td valign="top" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";
   echo '		    <td align="right" valign="top">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '</td>' . "\n" .
	 '		  </tr>' . "\n";
 }
?>
    </table></td>
  </tr>
   </table>
 </div>
 <h2><?php echo HEADING_BILLING_INFORMATION; ?></h2>
 <div class="contentText">
   <table border="0" width="100%" cellspacing="1" cellpadding="2">
  <tr>
    <td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
	  <tr>
	    <td><?php echo '<strong>' . HEADING_BILLING_ADDRESS . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
	  </tr>
	  <tr>
	    <td><?php echo tep_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'); ?></td>
	  </tr>
	  <tr>
	    <td><?php echo '<strong>' . HEADING_PAYMENT_METHOD . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
	  </tr>
	  <tr>
	    <td><?php echo $order->info['payment_method']; ?></td>
	  </tr>
    </table></td>
    <td width="70%" valign="top" align="right"><table border="0" cellspacing="0" cellpadding="2">
<?php
 if (MODULE_ORDER_TOTAL_INSTALLED) {
   echo $order_total_modules->output();
 }
?>
    </table></td>
  </tr>
   </table>
 </div>
<?php
   }
 }
 if (tep_not_null($order->info['comments'])) {
?>
 <h2><?php echo '<strong>' . HEADING_ORDER_COMMENTS . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></h2>
 <div class="contentText">
   <?php echo nl2br(tep_output_string_protected($order->info['comments'])) . tep_draw_hidden_field('comments', $order->info['comments']); ?>
 </div>
<?php
 }
?>
 <div class="contentText">
   <div style="float: left; width: 60%; padding-top: 5px; padding-left: 15%;">
  <div id="coProgressBar" style="height: 5px;"></div>
  <table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr>
	  <td align="center" width="33%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>
	  <td align="center" width="33%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_PAYMENT . '</a>'; ?></td>
	  <td align="center" width="33%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
    </tr>
  </table>
   </div>
   <div style="float: right;">
<?php
 if (is_array($payment_modules->modules)) {
   echo $payment_modules->process_button();
 }
 echo tep_draw_button(IMAGE_BUTTON_CONFIRM_ORDER, 'check', null, 'primary');

 //start Paymate change 08-2007
 if($$payment->title != MODULE_PAYMENT_SPI_PAYMATE_TEXT_TITLE) {
 echo tep_draw_button(IMAGE_BUTTON_CONFIRM_ORDER, 'check', null, 'primary');
 }
 else {
$image_url = DIR_WS_LANGUAGES . $language . '/images/buttons/' . 'button_confirm_order.gif';
echo '<a href="' . tep_href_link('paymate_checkout_preprocess.php') . '">' . tep_image($image_url) . '</a>';
 }  
//end Paymate change 08-2007

?>
   </div>
 </div>
</div>
<script type="text/javascript">
$('#coProgressBar').progressbar({
 value: 100
});
</script>
</form>
<?php
 require(DIR_WS_INCLUDES . 'template_bottom.php');
 require(DIR_WS_INCLUDES . 'application_bottom.php');
?>

Edited by Wilderland
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...