Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SecPay difficulties


zuzu

Recommended Posts

I am having an issue with the SecPay module. I am using the latest version of oscommerce 2.2 MS2 (07/12/2003)

 

I am using linux Linux 2.4.23-grsec and Database MySQL 4.0.15-standard and

PHP Version: 4.3.4 (Zend: 1.3.0)

 

When I submit a credit card payment using SecPay I get the following error 'There has been an error processing your credit card. Please try again.' at the top of the Payment Information screen. However is receive the following email below saying the status is OKAY.

 

Please look into this

 

Regards

 

Z

 

----Original Message Follows----

From: SECPay Test Transaction

To: "[email protected]"

Subject: SEC-Order : SECPay Test Transaction

Date: Sat, 3 Jan 2004 00:32:17 GMT

THIS IS A TEST TRANSACTION

NEW ORDER (Details attached)

Please view this with a fixed-width font.

Date Name Amount Curr Type Status

------------------- -------------------- ---------- ---- ---- ------

03.01.2004 00:32:12 Asasasas 44.99 USD Sale Okay

Order : osCommerce20040102073141

Addresses

Shipping Billing

------------------------------ -----------------------------

Name : Zzz Zzz Zzz Zzz

Address : Sudfwiufg Sudfwiufg

Town/City : London London

County/State : London London

Country : United Kingdom United Kingdom

Post Code : 384324 384324

Telephone : 234567890

Email : [email protected]

Link to comment
Share on other sites

  • 4 weeks later...

When I initially installed the Secpay module I had the same problem and found that the code down in the module /includes/modules/payment/secpay.php which is performing the before_process is checking REMOTE_HOST for = 'secpay.com'.

The variable REMOTE_HOST doesn't infact contain anything so the code redirects you back to Checkout_Payment.php module which then throws up the error. As far as secpay are concerned the transaction was fine so they send out the email.

Link to comment
Share on other sites

I commented out the lines 137 and 140 in secpay.php :

 

//            tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, tep_session_name() . '=' . $HTTP_POST_VARS[tep_session_name()] . '&payment_error=' . $this->code, 'SSL', false, false));

 

does this constitue a security risk?

Link to comment
Share on other sites

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

  • 1 month later...

I am currently having a few probs linking to this template. Got the site working perfectly with the green screen, but I don't want it, obviously. I want to customise the look from oscommerce.

 

Secpay suggest that you have to include lines like:

<input type="hidden" name="template" value="http:www.secpay.com/users/myname/mytemplate.htm

 

this apparently will reference the template on their server. I have looked through their guide and on the website but it just doesn't make sense.

 

Where on secpay.php do I inlcude these hidden form fields? I have no idea.

Anyone?

Have a good time . . . all the time. That's my philosophy on life, Marty

Link to comment
Share on other sites

Look in catalog/includes/modules/payment/secpay.php all the hidden fields are listed and are prefixed by tep_draw_hidden_field. When you design your own input form just make sure all the hidden fields are included and primed.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...