sirmanix Posted June 4, 2003 Posted June 4, 2003 Im using the Linkpoint Basic contribution and is working perfect 4 me. The only thing I don't know how to handle is the "sorry page" that can displayed if a payment doesn't go through because of wrong entries etc. Did anyone setup this up so that the customer get directed back to the checkout_payment.php - and how did you handle the osCsid? Any hint will be great! thanks alot :wink:
WebMistress Posted June 9, 2003 Posted June 9, 2003 hi - did you ever get this solved? if so what did you do
sirmanix Posted June 10, 2003 Author Posted June 10, 2003 no.. its still not solved! If an error occurs the customer gets to see linkpoints error message. Not nice but haven't lost a customer because of that yet. Still would love to do it the better way :) anyways If anyone comes up with a solution that'll be great thanks : )
bootNumlock Posted August 7, 2003 Posted August 7, 2003 i would love to see a solution for this to work as well--the linkpoint docs tell us what variable to be checking for and the contribution appears to have a function that simple states return as what it does-- perhaps we have to write some code in there.... if i come up with something, i will post here. thanks.
bootNumlock Posted August 7, 2003 Posted August 7, 2003 hey, if you look at the code from the contribution... there is some commented out code in the function before_process() simply uncomment that and make sure your sorry page is set to... checkout_process.php hope that helps some people...
bootNumlock Posted August 18, 2003 Posted August 18, 2003 well, i quickly figured out that this did not really fix things...all transactions looked successful, even if they were not... now i am slowly trying to figure out how to get the returned variables...at first glance it appears that linkpoint always returns 'declined' for status... the documentation says i need a cgi program to capture the return info and put into a db--i just want to read it and re-direct based on the info!!! ugh!
bootNumlock Posted August 18, 2003 Posted August 18, 2003 actually--does anyone still care about this? here goes nothin... i messed around with adding variables to the thankyou and sorry page urls--this meant i needed to change the function function before_process() to this... function before_process() { global $HTTP_GET_VARS; //global $HTTP_GET_VARS; if($HTTP_GET_VARS['status'] == 'APPROVED') return; if ($HTTP_GET_VARS['status'] != 'APPROVED') { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode($HTTP_GET_VARS['status']), 'SSL', true, false)); } } notice we are using GET variables instead of post... so i simply added ?status=APPROVED to the thankyou url (that sill points to process) and added ?status=DECLINED to the sorry url... it appears to work just fine--now if i could just get the store sending emails from my windows box again!!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.