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 ...
|
|||||||
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
Check this line and be sure it is correct. The error seems to be pointing to this:
PHP Code:
|
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
||||
|
||||
|
Can you verify that you have the real data in your code:
PHP Code:
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. |
|
#5
|
|||
|
|||
|
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
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |