Android Alipay payment, micro-credit payment, UnionPay payment integration Third party payment access method (background order Payment API design) _android

Source: Internet
Author: User

The client gets the design of the background payment API request parameter

Parameter examples:

{
data: {
method:1,
platform:1,
version: "1.0",
relate_orders: "b201602031023,b2016020310231" ,
order_no: "BZY201604200952100",
order_type:1,
total_fee:1,
Description: "Commodity purchase",
client_ip : ' 192.168.1.1 ',
limit_pay:1
},
sign: "91c1e03d0434762e45d0998f4088f438"
}

Return parameter sample:

{
"D": {"method": "Platform":
1, "
AppID": 88888888,
"Subappid": 0, "
orderno": " B201604200952100 ","
Tradeno ":" P016008888888804202100000015 ",
" sign ":" 82b0641ff2e8eefab5ecae4888917027 ",
" Result_code ": 1000,
" MSG ":" Success ",
" data ": {...}}
}

Return parameter Description:

Sample of micro-letter parameters

{
"D": {
...,
"data": {
"AppID": "wxf843f414c66a8219", "
noncestr": " 636ffe57999b4022a90673119ed8966e ",
" package ":" Sign=wxpay ",
" Partnerid ":" 1234500402 ",
" Prepayid ":" wx201604221610092aa8320bcc0065663153 ",
" sign ":" 5f27486ef777b4df293f78039d93d66a ",
" timestamp ": 1461312609}}}

Example of Alipay parameters

{
"D": {
...,
"data": {
"content": "partner=\" 208812135961156220\ "&seller_id=\" test@qq.com\ " &out_trade_no=\ "bzy20234620\" &subject=\ "buy goods \" &body=\ "buy goods \" &total_fee=\ "0.01\" &notify_url =\ "http://devpay.baidu.cn/api/payment/alipay/app_backurl.aspx\" &service=\ "mobile.baidu.pay\" &payment_ Type=\ "1\" &_input_charset=\ "utf-8\" &it_b_pay=\ "1d\" &sign=\ "gdnbgceeiqxkwz8jv1n%" 2fa6slhqvhzmgpnobos8qzq714bnk% 2bs8hkxblrfaakied1051yzgwjordshjn5zpcdumnnddff9ysuc1yp2crvkaqx4zh7phsv1cnrq6gkmlyruamdmfcrmqg2rpiqus1th0ujz6l04lf7kbswilp 6tgq%3d\ "&sign_type=\" Rsa\ "}}
}

Examples of UnionPay parameters

{
' d ': {
...,
' data ': {
' tn ': ' 201604210955161255388 '
}}}

The above mentioned is small series to introduce the Android Alipay payment, micro-letter payment, UnionPay payment integration Third-party Payment access method (background order payment API design), I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

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.