支付宝支付笔记

//支付宝异步通知打印post过来数据是
Array
(
    [code] => alipay
    [discount] => 0.00
    [payment_type] => 1
    [subject] => 2016051192168
    [trade_no] => 2016051121001004300216091388
    [buyer_email] => 9564543@qq.com
    [gmt_create] => 2016-05-11 10:04:34
    [notify_type] => trade_status_sync
    [quantity] => 1
    [out_trade_no] => 201605119216810308
    [seller_id] => 2088029691575273
    [notify_time] => 2016-05-11 10:04:39
    [trade_status] => TRADE_SUCCESS
    [is_total_fee_adjust] => N
    [total_fee] => 0.10
    [gmt_payment] => 2016-05-11 10:04:38
    [seller_email] => jstacompany@163.com
    [price] => 0.10
    [buyer_id] => 2088402549906300
    [notify_id] => 5ab054a5d949a66c7b024fe99ee2d09ibe
    [use_coupon] => N
    [sign_type] => MD5
    [sign] => 42efe8cd4583dd2191f59b4b70d66692
)

 

//支付宝wap异步通知服务器的数据为
array(
    'service' => 'alipay.wap.trade.create.direct',
    'sign' => '0653277eef84666b3ed76aaef404a83f',
    'sec_id' => 'MD5',
    'v' => '1.0',
    'notify_data' =>'
    <notify>
        <payment_type>1</payment_type>
        <subject>2016051127035</subject>
        <trade_no>2016051121001004300212797399</trade_no>
        <buyer_email>956834543@qq.com</buyer_email>
        <gmt_create>2016-05-11 09:37:43</gmt_create>
        <notify_type>trade_status_sync</notify_type>
        <quantity>1</quantity>
        <out_trade_no>2016051127035_10306</out_trade_no>
        <notify_time>2016-05-11 09:37:43</notify_time>
        <seller_id>2088021691575273</seller_id>
        <trade_status>TRADE_SUCCESS</trade_status>
        <is_total_fee_adjust>N</is_total_fee_adjust>
        <total_fee>0.10</total_fee>
        <gmt_payment>2016-05-11 09:37:43</gmt_payment>
        <seller_email>jstacompany@163.com</seller_email>
        <price>0.10</price>
        <buyer_id>2088402549906300</buyer_id>
        <notify_id>155f38eb725a9d8b10b52e2aace2282ibe</notify_id>
        <use_coupon>N</use_coupon>
    </notify>'
);

wap版支付文档: https://doc.open.alipay.com/doc2/detail.htm?spm=a219a.7629140.0.0.0fgkmV&treeId=60&articleId=103564&docType=1

posted @ 2016-05-11 10:15  稻禾盛夏  阅读(690)  评论(0编辑  收藏  举报