如何将服务器应用于服务器通信(在付款方式中) [英] How to apply Server to Server Communication (In Payment Gategay)

查看:77
本文介绍了如何将服务器应用于服务器通信(在付款方式中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,

我通过SBI网上银行在我的网站上应用支付网关。

我已经在我的网站到SBI网站之间进行了交易流程..

但下一步是从商家服务器到SBI服务器的双重验证,但我对此一无所知。



请给我对从商家服务器到SBI服务器的双重验证的一些想法

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"

推荐答案

试试这个....你会得到你的解决方案。





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


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);







和PostRequest方法是




And The PostRequest Method is

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);
    }


这篇关于如何将服务器应用于服务器通信(在付款方式中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆