Click here to Skip to main content
15,891,886 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
See more:
Hello Everyone,
I am applying Payment Gateway in my website through SBI Net Banking.
I have done Transaction Process between my site to SBI Site..
But the next Step is "Double Verification from Merchant Server to SBI Server " but i don't have any idea for it.

Please give me some idea for "Double Verification from Merchant Server to SBI Server"
Posted
Updated 14-Apr-15 0:29am
v2
Comments
Garth J Lancaster 6-Feb-15 4:27am    
surely that's a question that SBI would answer and/or help you with - I've never implemented a payment gateway with a bank that didn't involve sitting side by side with them to work on the protocol implementation and testing
You have to speak to them on this.

1 solution

Try This .... you will get your Solution.


C#
string request = "YourAmount=500|RefNo=4512df65";
string checkSum = "My CheckSum in Hash Format";
string requestMsg = request + "|checkSum=" + checkSum;
msg = Encrypt(requestMsg, Server.MapPath("Key/yourMerchantKey.key"));
string postData = "encdata=" + msg + "&merchant_code=YourMerchantCode";
NameValueCollection nameValue = new NameValueCollection();
nameValue.Add("encdata", msg);
nameValue.Add("merchant_code", "YourMerchantCode");
string responseMsg = PostRequest("https://yourbankurl.com", nameValue);



And The PostRequest Method is
C#
public string PostRequest(string url, NameValueCollection nameValue)
    {

        // Create a new WebClient instance.

        WebClient webClient = new WebClient();



        // Upload the NameValueCollection.

        byte[] responseArray = webClient.UploadValues(url, "POST", nameValue);



        // Decode and display the response.

        return Encoding.ASCII.GetString(responseArray);
    }
 
Share this answer
 
Comments
aarif moh shaikh 14-Apr-15 6:21am    
Oh... Thanks to giving me this type of idea ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900