How to access the B2C online payment interface of ICBC online bank

Source: Internet
Author: User

The B2C online payment interface of ICBC's online bank is feasible in the test.

Tools/Raw Materials
  • Merid: The Code provided by the Bank that uniquely identifies a merchant. When a merchant opens an account at ICBC, ICBC notifies the merchant.

  • Meracct: Provided by the bank, the account for billing of the mall (which can only be specified during transactions ).

  • One programmer who understands HTML code and PHP

Method/step
  1. 1

    To open an account at a bank, you need to make a B2C online payment interface. At this time, the bank will provide you with the merid and meracct

  2. 2

    The programmer can follow the steps below to add the following controls on the page of the form submitted by the mall.

  3. 3

    <HTML xmlns = http://www.w3.org/1999/xhtml>

    <Head>

    <Meta http-equiv = Content-Type content = "text/html; charset = UTF-8">

    <Title> Baidu, you will know </title>

    </Head>

    <Body>

    <Form name = "order" method = post action = "https://mybank.dccnet.com.cn/servlet/ICBCINBSEBusinessServlet">

    <! --

    The order can only be submitted in post mode; HTTPS communication is used;

    2. The name of the received servlet is fixed to/servlet/icbcinbsebusinessservlet.

    3. Bank address: "mybank.icbc.com.cn" for production purposes, and "mybank.dccnet.com.cn" for a simulated test environment"

    -->

    <Input name = "interfacename" type = "text" value = "icbc_perbank_ B2C">

    <! -- The interface name is fixed as "icbc_perbank_ B2C" -->

    <Input name = "interfaceversion" type = "text" value = "1.0.0.0">

    <! -- The current interface version is "1.0.0.0" -->

    <Input name = "orderid" type = "text" value = "000000001">

    <! -- The order number is generated at the merchant end and cannot be repeated within one day. -->

    <Input name = "amount" type = "text" value = "100">

    <! -- The amount is divided into units -->

    <Input name = "curtype" type = "text" value = "001">

    <! -- The currency currently only supports RMB, and the code is "001" -->

    <Input name = "merid" type = "text" value = "xxxxxxxxxx">

    <! -- Provided by the Bank (max20), the only merchant's code is determined. When the merchant opens an account at ICBC, the merchant is notified by ICBC. -->

    <Input name = "meracct" type = "text" value = "xxxxxxxxxx">

    <! -- Provided by the Bank (max19), the account for billing of the mall (which can only be specified during transactions ). -->

    <Input name = "verifyjoinflag" type = "text" value = "0">

    <! -- "1" determines whether the customer is a joint merchant. The value "0" does not check whether the customer is a joint merchant. -->

    <Input name = "policytype" type = "text" value = "Hs">

    <! -- HS sends notifications in real time; AG does not send notifications; -->

    <Input name = "merurl" type = "text" value = "http://kinderpower.com/servlet">

    <! -- The address for receiving bank notifications. Currently, only port 80 of the HTTP protocol is supported. -->

    <Input name = "resulttype" type = "text" value = "0">

    <! -- For the HS method "0": Send success or failure information; "1", only send transaction success information. -->

    <Input name = "orderdate" type = "text" value = "20050801192556">

    <! -- 14-bit timestamp -->

    <Input name = "mersignmsg" type = "text" value = "sfvds3kca6d/outputs/watz5dfyfog7j8pxw0 =">

    <! -- Base64 encoding of merchant signature data -->

    <! -- Signature data string. Here we use the test private key user. Key (the order is fixed; the string signed by the merchant is the value of each input item ):

    Interface Name value + Interface version number value + mall code value + mall account value + notification address value + Result sending type value + order number value + order amount value + payment currency value + Notification Type value + Transaction date value + verification joint Sign value -->

    <Input name = "mercert" type = "text" value = "miicvjccab + signature + U/Signature + spknffu1_hjlci2kiya + signature/hkmez + signature/Signature/Q/Signature + C + l8fkot37o = ">

    <! -- Base64 encoding of the merchant certificate Public Key -->

    <! -- Test certificate user. CRT -->

    <Input name = "goodsid" type = "text" value = "abcd001">

    <! -- Product ID, obtained from mall -->

    <Input name = "goodsname" type = "text" value = "felt hat">

    <! -- Product name, obtained from mall -->

    <Input name = "goodsnum" type = "text" value = "1">

    <! -- Number of items, obtained from mall -->

    <Input name = "carriageamt" type = "text" value = "100">

    <! -- Included freight amount, the amount is divided into units, obtained from the mall -->

    <Input name = "merhint" type = "text" value = "Jump sale! "Size =" 60 ">

    <! -- Mall prompt. The above five fields are displayed on the customer's payment page -->

    <Input name = "remark1" type = "text" value = "">

    <! -- Comment field max (100) -->

    <Input name = "remark2" type = "text" value = ">

    <! -- Comment field max (100) -->

    <Input type = "Submit" value = "Submit order">

    </Form>

    <Body>

    End
Notes
  • Note: No fields defined in the interface cannot be submitted when the merchant submits the order data

  • The name attribute cannot be set for the submit button. If it is set, the value of the submit button will be submitted as a variable, which may cause data check errors.

How to access the B2C online payment interface of ICBC online bank

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.