Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

entering 2 times of credit card payment using 2checkout


keikor

Recommended Posts

Hi all,

 

I am using the 2checkout module in 2.2. The first 2checkout form appears in the checkout_payment.php as this:-

 

2CheckOut

Credit Card Owner First Name:

Credit Card Owner Last Name:

Credit Card Number:

Credit Card Expiry Date: JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember 2005200620072008200920102011201220132014

Credit Card Checknumber: (located at the back of the credit card)

 

Ok, lets say i enter this credit card details, (and i am not using a ssl cert, which i dont plan to get one), and then it redirects to 2checkout payment form again. So what should i do to exclude the form in the page, so that customers will only redirect to the secure 2checkout payment page only?

 

THanks!

Link to comment
Share on other sites

You'll have to modify the 2CO payment module. At a minimum, these three functions to look like below:

 

function javascript_validation() {

return false;

}

 

function selection() {

return array('id' => $this->code, 'module' => $this->title);

}

 

function pre_confirmation_check() {

return true;

}

 

 

You'll probably have to do more, but those three functions will get you past the payment page.

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Link to comment
Share on other sites

  • 7 months later...

You also need to change:

 

catalog/includes/modules/payment/pm2checkout.php

  function confirmation() {
//to prevent the cc input stuff to appear!
return NULL;		
 }

 

 

I do also suggest to change:

 

catalog/includes/languages/english/modules/payment/pm2checkout.php

	define('MODULE_PAYMENT_2CHECKOUT_TEXT_TITLE', '2CheckOut - Credit Card Payment'); //more information on the payment method

If you are using multiple languages you need to change this for all you are using.

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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