Alipay fee-free, sign-free, instant account interface implementation scheme and demo download

Since the Alipay signing interface has a handling fee of 6,000,
I checked it online.
The implementation of Alipay’s free signing and instant payment
is basically to write fixed-format data in the transfer notes according to the format
, and then capture the data in the background to enter the account.


There are two main methods of background data real-time data capture


1. Log in to the background of the web page on the PC to refresh in real time and capture data into the account
through remarks The problem of cookie expiration Alipay will log out after a period of time. 2) The solution is mainly 2 points . The first point is to simulate manual operation to click on the page and refresh the page regularly. However, this can only prolong the logout time. The actual test can generally guarantee 20 The second point is to judge whether to log out by judging the browser address, and then write a post script, no matter whether it is a WeChat notification email notification, anyway, the notification reminds you to log in again. Second, trigger the post script through the Alipay message in the message bar of the mobile phone. This method is tested. It's not feasible at once. The message on the phone only has the amount but no notes.










Conclusion: It is acceptable to use PC-side data capture combined with simulated manual operation to perform logout time and make a logout message reminder. It is actually acceptable to log in once every 20 hours.


Front-end generation of payment QR code

Interface 1:
alipays://platformapi/startapp?appId=20000123&actionType=scan&biz_data={“s”: “money”, “u”: “merchant id”, “a”: “amount”, “m”: “remarks” }
Interface 2:
alipays://platformapi/startapp?appId=09999988&actionType=toAccount&goBack=NO&amount=amount&userId=merchant id&memo=remarks


Description
alipays://platformapi/startapp?appId=09999988&actionType=toAccount&goBack=NO&amount=1.00&userId=2088501156491651&memo=remark 2088501156491651 specific link: alipays://platformapi/startapp?appId=09999988&actionType=toAc count&goBack=NO&amount=amount&userId=user id&memo
= Remarks
The link "user id" here is not the Alipay collection account. Log in to Alipay on PC, right-click to view the source code, search for the keyword "uid", and what appears is your Alipay user id. Don't touch the appid here. This is the corresponding Appid to open Alipay corresponding operation
========================= l
QR code example
alipays://platformapi/startapp?appId=20000123&actionType=scan&biz_data={ "s": "money", "u": "2088501156491651", "a": "1", "m": "CSDN, a test, 20200609093339863"} The above text generates a QR
code
insert image description here

Scan Alipay to see the effect
insert image description here***

I wrote a DEMO for the background crawling client


Download
link: https://pan.baidu.com/s/1oqn9pfPriRwgqDK_pnbrrw Extraction code: mxk2insert image description here

Log in by scanning the QR code and press Security.
After logging in, click Jump and then click Start Monitoring
insert image description here***

WeChat template message reminder module after logout


Write a script.
After the client exits, you can post it.
I wrote a php domo

<?php
include "wechat.class.php";
echo '102';
$options = array(
    'token'=>'', //填写你设定的key
    'encodingaeskey'=>'', //填写加密用的EncodingAESKey
    'appid'=>'', //填写高级调用功能的app id
    'appsecret'=>'' //填写高级调用功能的密钥
);
$weObj = new Wechat($options);
 $showtime=date("Y-m-d H:i:s");
            $post_data = array(
                "touser"=>"ok0BB1U3gMYGb7uSiIBCaRZhsC0g",
                "template_id"=>"qLLFNRznbCAKE-bPLQua5wLf9JAeGy-NENZNf1nfdeU",
                "url"=>"http://www.baidu.com",
                "data"=> array(
            "first" => array(
                "value"=>"您的支付宝后台监控已经退出!",
                "color"=>"#173177"
            ),
            "keyword1"=>array(
                "value"=>$showtime,
                 "color"=>"#173177"
                        ),
             "keyword2"=>array(
                "value"=>"杭州",
                 "color"=>"#173177"
                        ),
             "keyword3"=>array(
                "value"=>"财务",
                 "color"=>"#173177"
                        ),
            "keyword4"=>array(
                "value"=>"请重新登录",
                 "color"=>"#173177"
                        ),
             "remark"=>array(
            "value"=>"请尽快处理",
            "color"=>"#173177"
                         ),
                )
        );
            //$post_data = json_encode($post_data);
            echo '-11';
            $ok=$weObj->sendTemplateMessage($post_data);
            echo '-12';
           print_r ($ok, true);
            echo '-13';
            echo $zyqtry2;

Called
wechat-php-sdk
weixin developer SDK.
Project address: https://github.com/dodgepudding/wechat-php-sdk
Project blog: http://binsee.github.io/wechat-php-sdk

Well, if you have any questions, leave me a message or a private message
. Hehehe,
you can also follow my official account
insert image description here

Guess you like

Origin blog.csdn.net/zyqytsoft/article/details/107161356