ALIPAY PAYMENT MODULE 4.1 can't be used in Chinese language state
internalstring GetMD5(string input) { var md5 = new MD5CryptoServiceProvider(); var t = md5.ComputeHash(Encoding.GetEncoding(InputCharset).GetBytes(input)); var sb = new StringBuilder(32);
foreach (var b in t) { sb.AppendFormat("{0:x}", b); // sb.AppendFormat("{0:X}", b); }
I have a question about Nopcommerce Alipay 4.0 Plugin created by Nopcommerce Team. https://www.nopcommerce.com/p/963/alipay-payment-module-china.aspx When I checked the source code, it is only for Domestic Alipay Users.
The alipay account I applied for is global.alipay.com I updated alipayNotifyUrl and Post url here
In AliPayPaymentProcessor.cs LINE 27-28 private const string ShowUrl = "http://global.alipay.com/"; private const string Service = "create_forex_trade";
Line 134-139 var post = new RemotePost { FormName = "alipaysubmit", Url = "https://intlmapi.alipay.com/gateway.do?_input_charset=utf-8", Method = "POST" };
In PaymentAliPayController.cs LINE 114 var alipayNotifyUrl = $"https://intlmapi.alipay.com/gateway.do?service=notify_verify&partner={partner}¬ify_id={model.Form["notify_id"]}";
After I rebuilt the plugin and tested it, it shows "ILLEGAL_SIGN"
Can anyone please help?
Thanks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hai ancora qualche domanda o hai bisogno di aiuto?