Recently should a customer request, to his one Ecshop Web site development Nine send online payment interface and pay the interface.
Nine faction has its own cashier, the integration of various types of banks, is also good.
The ninth faction originally uses MD5 private key authentication, later uses the RAS authentication.
First, the signature domain (MerchantS S ign/serversign) and the certificate domain appear in the message
(merchantcert/servercert) All data elements in the form of Key=value by name
Sorting, and then stitching the & as a connector into the string to be signed (value is empty domain, does not participate in the string to be signed).
Then use the nine-pie merchant RSA private key certificate issued to the merchant to sign the digest (the signature-time algorithm
Support SHA256 and SHA-1 1, SHA256 recommended). Finally, the signed signature string is placed in the signature
(merchantsign) In form fields and other form fields are transmitted to nine via HTTPS Post
Dispatch platform.
if (!defined (' Ec_charset '))
{
$charset = ' utf-8 ';
}
Else
{
$charset = Ec_charset;
}
$version = ' 1.0 ';
$charset = ' 02 ';
$merchantId = $payment [' Ninepay_account '];
$requestTime = Date (' Ymdhms ');
$requestId = $order [' order_sn '];
$service = ' rpmbankpayment ';
$signType = ' RSA256 ';
$pageReturnUrl =return_url (basename (__file__, '. php '));
$notifyUrl =return_url (basename (__file__, '. php '));
The above is part of the code.
Finally note that the nine factions currently only provide java,php, and C # version of the demo, or relatively rich.
Original from:
Http://www.0475seo.com/tech/cms/310.html
There are other interfaces:
Yinsheng Payment Interface:
Http://www.0475seo.com/tech/2dev/287.html
Rainbow Payment Interface
Http://www.0475seo.com/tech/cms/285.html
Ching Payment Interface:
Http://www.0475seo.com/tech/cms/289.html
More interfaces from:
http://www.0475seo.com/s/onlinepay/
If you need to develop this interface can use QQ to communicate with me: BA 0 qi Wu 00 nine (804752009) annotated payment interface.
Nine send ECSHOP,THINKPHP,SHOPNC online payment interface, payment plug-in (Payment plugin with source)