osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Payment Module Postback URL/Return URL???

This is a discussion on Payment Module Postback URL/Return URL??? within the osCommerce 2.2 Discussion forums, part of the osCommerce 2.2 Forums category; Hi Everyone, I'm having problems coming up with a definite answer as to what the postback/return URL is in osCommerce ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-09-2005, 07:59 PM
Lurker
 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
DM420
Default Payment Module Postback URL/Return URL???

Hi Everyone,

I'm having problems coming up with a definite answer as to what the postback/return URL is in osCommerce for 3rd party payment processors that sends back response codes once a payment has been approved/declined is?

I'm using a local 3rd party payement processor called Moneris and have a custom payment module for osCommerce.

Everything works fine as I go through the check up process upto the point where you confirm the order on checkout_confirmation.php. The process button posts the form correctly to the payment processor and I get an approved transaction.

I am then re-directed to the postback/return URL which i set to many different things with no luck.

I have tried setting it to checkout_success.php with and without passing the "osCsid" value. (i.e. http://www.domain.com/catalog/checko...4e5xxxxxxxxxxx). . To achieve this i either specify checkout_success.php directly which results in no osCsid getting passed or by creating a file called similar to the code below which contains:

Code:
<?php
$session_id = $HTTP_POST_VARS['rvarsessionid'];
include('includes/application_top.php');
tep_redirect(tep_href_link(FILENAME_CHECKOUT_PROCESS, 'osCsid=' . $session_id , 'SSL', false, false));
?>
The "rvarsessionid" variable here is a custom field that is posted back to my script. It contains the osCsid value which I send to the payment processor during the inital transaction. I do realize that in the above code it redirects to FILENAME_CHECKOUT_PROCESS which is checkout_process.php but I have tried it with checkout_success.php as well.

I have also tried setting it to checkout_process.php, also with or without the osCsid passed via GET as above.

Either of these ways is not successful. If I don't pass in osCsid to the PHP pages then osCommerce thinks i'm not logged in. If I do pass it in, osCommerce takes me back to checkout_payment.php with an error in the URL stating he CC # was declined. How it knows it is declined is beyond me, since it is valid.

I want to clear up once and for all where I should get the payment processor to redirect to.

Obviously, I could redirect to an approve/decline HTML page but it seems that unless I complete the check out process, the order doesn't get recorded and the customer still has the product in their shopping cart.

Any ideas would be greatly appreciated. I can post more info as needed.

My config is as follows:

osCommerce 2.2-MS2 (no additional modules except for the payment one)
Fedora Core 3
Apache 2.0.52
Mysql 3.23.58
curl 7.12.1
PHP 4.3.9

Thanks in advance

DM
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
SurePay Payment Module v. 0.1.0 stan osCommerce 2.2 Modification Help 3 02-16-2005 07:59 AM
Need to know if there is an eci-pay payment module. fridgemags osCommerce 2.2 Modification Help 0 05-16-2004 10:28 PM
payment module CMWM osCMax v1.7 General Mods Discussion 0 04-10-2004 07:11 AM
BoA payment Module Anonymous osCMax v1.7 Discussion 0 12-07-2003 11:31 PM
Payment module tozo osCMax v1.7 Discussion 0 09-21-2003 06:05 AM


All times are GMT -8. The time now is 09:30 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax