Cardia Payment Gateway

This is a discussion on Cardia Payment Gateway within the v3.1 Questions & Support forums, part of the v3.1 Legacy Help & Support category; I am trying to set up the custom payment mod for a payment gateway called Cardia. I am in need ...


Go Back   68 Classifieds Forums > v3.1 Legacy Help & Support > v3.1 Questions & Support

 
LinkBack Thread Tools Display Modes
  #1  
Old 12-27-2006, 05:10 AM
Junior Member
 
Join Date: Nov 2006
Location: Monticello, MN USA
Posts: 7
Rep Power: 0
Default Cardia Payment Gateway

I am trying to set up the custom payment mod for a payment gateway called Cardia. I am in need of help as my programming skills do not seem to be adequate enough to configure the two files customsend and customreturn with the proper syntax. I believe the error I describe below is from not adequately knowing php or how to configure 68Classifieds correctly.

Cardia is the payment gateway for Norway. I have attached the implementation doc for Cardia.

We have been thru the posts several times and thru all the documentation available. I was able to configure customsend.php as follows:

************************************************** ********
function custom_send($listingid,$grandTotal,$package,$extra ,$exta2,$userinfo)
{

$output ='<FORM action="https://secure.cardia.no/Service/Card/Transaction/1.2/Transaction.asmx" method="post">';
$output.='<input type="hidden" name="merchantToken" value="CF4B6B54-6C28-4FA3-86B0-E9A347D75C6C">';
$output.='<input type="hidden" name="applicationIdentifier" value="">';
$output.='<input type="hidden" name="store" value="BilligBolig">';
$output.='<input type="hidden" name="orderDescription" value="'.$package.'">';
$output.='<input type="hidden" name="merchantReference" value="'.$listingid.'">';
$output.='<input type="hidden" name="currencyCode" value="NOK">';
$output.='<input type="hidden" name="successfulTransactionUrl" value="http://cardia.eirik.unicore.no/shop.php?ok=1">';
$output.='<input type="hidden" name="unsuccessfulTransactionUrl" value="http://cardia.eirik.unicore.no/shop.php?ok=0">';
$output.='<input type="hidden" name="authorizedNotAuthenticatedUrl" value="">';
$output.='<input type="hidden" name="amount" value="'.$grandTotal.'">';
$output.='<input type="hidden" name="skipFirstPage" value="False">';
$output.='<input type="hidden" name="skipLastPage" value="False">';
$output.='<input type="hidden" name="isOnHold" value="False">';
$output.='<input type="hidden" name="useThirdPartySecurity" value="False">';
$output.='<input type="hidden" name="paymentMethod" value="1000">';
$output.='<input type="hidden" name="debug" value="0">';
return $output;
}
?>
************************************************** ******

When sent to Cardia servers we get a SOAP error:
<soap:Envelope>
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>
Unable to handle request without a valid action parameter. Please supply a valid soap action.
</faultstring>
<detail/>
</soap:Fault>
</soap:Body>
</soap:Envelope>

Any ideas or help in configuring custom files would be appreciated.

Paul

Attached Files
Cardia.Shop.zip (404.4 KB, 2 views)
Reply With Quote
  #2  
Old 12-27-2006, 09:34 AM
Moderator
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,132
Rep Power: 57
Default

Check this line and be sure it is correct. The error seems to be pointing to this:

PHP Code:
     $output ='<FORM action="https://secure.cardia.no/Service/Card/Transaction/1.2/Transaction.asmx" method="post">'
__________________
Regards,

John


�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
Reply With Quote
  #3  
Old 12-27-2006, 11:37 AM
Junior Member
 
Join Date: Nov 2006
Location: Monticello, MN USA
Posts: 7
Rep Power: 0
Default

Quote:
Originally Posted by juven14 View Post
Check this line and be sure it is correct. The error seems to be pointing to this:

PHP Code:
     $output ='<FORM action="https://secure.cardia.no/Service/Card/Transaction/1.2/Transaction.asmx" method="post">'
I checked the url and it is correct. To the best of my limited knowledge the line looks correct but I am not sure. Is there another way to write the line? Please excuse my limited knowledge of php.
Reply With Quote
  #4  
Old 12-27-2006, 03:04 PM
Moderator
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,132
Rep Power: 57
Default

Can you verify that you have the real data in your code:

PHP Code:
     $output.='<input type="hidden" name="merchantToken" value="CF4B6B54-6C28-4FA3-86B0-E9A347D75C6C">'
I suspect this will need to be your specific unique id that you wouldn't put in the forum. If that is correct please contact them and be sure this is the correct link for the form:

https://secure.cardia.no/Service/Card/Transaction/1.2/Transaction.asmx

You should also ask them what generates this specific error code, it doesn't appear in any of their sample code that I looked at. Once you know where to look for the problem it will be easier to find.

__________________
Regards,

John


�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
Reply With Quote
  #5  
Old 12-27-2006, 05:15 PM
Junior Member
 
Join Date: Nov 2006
Location: Monticello, MN USA
Posts: 7
Rep Power: 0
Default

merchant token is correct and the one lusted in the forum is the one Cardia gives out as the token to use for testing your shopping cart before going live. If you look at the zipped file i attached on the first post you will see all of the implementation instructions along with the info to use for testing payment gateway
Reply With Quote

Bookmarks

Thread Tools
Display Modes

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
$listingid in payment gateway system pruffin v3.1 Questions & Support 2 01-13-2007 02:07 PM
Custom payment gateway with Verisign razones v3.1 Questions & Support 6 12-13-2006 04:54 PM
Payment gateway cooldeals v3.1 Questions & Support 0 11-11-2006 04:52 AM
Developing a payment gateway cooldeals v3.1 Questions & Support 6 10-20-2006 05:04 PM
Free listing still sent to payment gateway civ v3.1 Questions & Support 4 06-20-2006 10:05 PM


All times are GMT -4. The time now is 01:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22