HomeHome Product Discus... Product Discus...SmithCartSmithCartPayment gateway issuePayment gateway issue
Previous
 
Next
New Post
8/17/2012 2:15 AM
 
Hi,

I'm having issue in payment gateway set up. I want to use "PayU" payment gateway which is not part of smith cart payment gateways. So i selected "Custom Hosted payment gateway" in payment gateway set up and entered the merchant ID, Password and URL and it is in test mode. When I tried to checkout my product, page navigating to PayU payment gateway but I'm getting error as "Mandatory Variable merchant key missing in Request". My question is where do I configure this merchant key?

Can someone please help me.

Thanks,
Swetha.
 
New Post
8/17/2012 6:54 PM
 
The reason you are receiving that message is because the PayU gateway you want to integrate with is expecting to receive the fields named as outlined in their payment gateway integration doc.  

The following explains the architecture of how to plug in a custom payment gateway to Smith Cart.

The following diagram shows the basic flow of control when using the Smith Cart custom gateway option to plug in a new payment gateway:



The following items correspond to the numbers in the diagram above:

1. Your site running Smith Cart sends a Pay request to “Your Custom Web Service”.

2. Your Custom Web Service receives the request from Smith Cart and does the following:

            -Translates the fields posted by Smith Cart to the field names required by the payment gateway.

            -Builds a request to the new payment gateway you want to communicate with.

- Sends a request to the payment gateway using the communication mechanism outlined in the payment gateway integration guide.  Most payment gateways use one of the following communication mechanisms to send and receiveinformation:

-         Http post with hidden form fields

-         Http post with querystring parameters

-         Soap Xml web service

-         Restful web service

-         Method calls to a DLL provided by thepayment gateway

3. The payment gateway processes the transaction and responds with an approval or a decline.

4. Your Custom Web Service receives the response from the payment gateway and builds the response back to Smith Cart using the response fields that Smith Cart expects to receive. 

Please Note:  The box titled “Your Custom Web Service” in the diagram above is a program that you develop and can be in any language you desire (C#, VB, PHP, Java, etc.).  Your custom web service functions as a middleman between Smith Cart and the payment gateway you want to integrate with.

The reasons that Smith Cart cannot communicate directly with the new payment gateway and you need to develop your own web service to marshal transactions between Smith Cart and the payment gateway are as follows:

- Each paymentgateway uses a different communication mechanism (i.e.  http post, soap xml, restful web service,etc.)

- Each payment gateway uses different naming conventions for the request and response fields that are send back and forth.



Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
8/18/2012 3:49 AM
 
Hi,

Thanks for the reply.

I have couple of questions more

1)  What is the difference between Custom Direct Payment Gateway & Custom Hosted payment Gateway. Can you please suggest me to select which one?
2) In both of the case, Is smith card will post the parameters to url provided in the hidden form?
3) Is there  any settings page where I can update the smith cart predefined parameters so that it will pass correctly to my third party payment gateway site url as required.


At first, we have configured Authorize.Net there I can see the parameters posted to Authorize payment gateway. But when I changed to "Custom Hosted Payment Gateway" item in payment gateway dropdown and configured the Merchant ID and Password and URL provided by them. Now, When I click on the "Submit Order" Button in the Confirm Screen page, the user is redirected to Payu.in payment gateway and displayed with the error "Merchant ID is missing" .

It looks like smith cart code is not passing the parameters to payu payment gateway in case of "Custom Hosted payment Gateway" . For that reason you are suggesting us write up a Custom Webservice for handling it? If so where do I need to configure the custom web service link, Please help me.


Thanks,
Swetha.





 
New Post
8/21/2012 1:24 AM
 
First let's define the 2 payment gateway types: Direct and Hosted

Direct Gateway - A direct gateway is when the user remains on your site the entire checkout.

Hosted Gateway - A hosted gateway is when the user is redirected off your site to a payment page hosted by the payment gateway.

1) The Custom Direct Payment Gateway should be used when the custom gateway you want to plug in is a "direct gateway". The Custom Hosted payment Gateway should be used when the custom gateway you want to plug in is a "hosted gateway". Is PayU a direct or hosted gateway?

2) With both the custom direct and custom hosted gateways smith cart will post the parameters to url provided in the hidden form.

3) Smith Cart posts to a web service that you write. Then your program posts to PayU. Smith Cart does not post direct to PayU. Your program is translating the paramaters received from Smith Cart and then posting to PayU the parameters PayU expects to recieve. There is no settings page in Smith Cart for you to update the predefined parameters to pass to PayU, your program is providing the mapping.


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
10/11/2012 6:01 AM
 
There are so many ways for online payment but I am not familiar with this payment gateway issue which is about merchant key. There are different kind of issues happen with different kind of payment gateways. I am using www.merchantinc.com as a payment gateway to make online payment which runs your business with peace of mind with greater control over your funds.
 
New Post
10/11/2012 7:03 PM
 
Hello,

Could you please explain in more detail the issue you are reporting?

Which version of the Cart and DNN are you currently running?

Thanks
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartPayment gateway issuePayment gateway issue