In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
APP is how to achieve automatic renewal, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
01 Target
Realize the function of automatic renewal of members in APP
02 process
2.1. Authorization for automatic renewal of members
The essence of automatic renewal of members is the mode of entrusted deduction. Only when the user completes the signing can the merchant automatically deduct money from the user's account so as to complete the payment operation of the member order.
The user completes the withholding signing through Wechat or Alipay's SDK in the application, and Wechat or Alipay notifies the merchant backend of the contract information through asynchronous notification after the user has successfully signed the contract. The merchant backend needs to maintain the user's signing information, and the signing ID is the core information, which is used to verify authorization in the withholding request of the order.
2.2. Automatically initiate the renewal process when the member expires
After detecting that the user member is about to expire, the system initiates the automatic renewal process for the user. You need to complete the order creation and order payment (withholding), and finally delay the membership time for the user when the payment notification is called back. The main difference between a renewal order and an ordinary order is whether or not to call the delegate withholding API.
03 delegation of debit authorization
The authorization of deduction entrusted by users is the premise of automatic renewal of members, which mainly includes two modes: signing contract in payment and pure signing contract.
3.1. Signing a contract in payment
Complete the signing of the withholding agreement at the same time of payment. You only need to add the signing information to the original order parameters to support the signing function, which seems to be very suitable for the automatic renewal of our members. Complete the signing function after the user issues the order to purchase the member on a monthly basis.
However, in the process of practice, it is found that there is a problem ignored that signing a contract in payment does not open the contract by default, which requires the user to manually open the entrusted deduction. We hope to increase the proportion of users signing up, and the operation cost that requires users to manually check this step is really too large to meet our expectations.
3.2. Sign only
In the pure signing mode, merchants first call the pure signing interface through the front-end page to complete the withholding agreement with the user, and when they need to deduct money, they can call the API to apply for deduction to withhold money automatically. After signing the contract, the merchant backend will receive a callback notification.
04 scheme design
The basic process of automatic renewal of adjusted members is as follows:
4.1. Optimization of automatic renewal process
Use the signing-only API, not the signing-in-payment API
Only the signing API can limit users to sign a contract before they can buy continuous monthly goods. In order to simulate the user's experience of signing up and paying, the system initiates the automatic renewal process after the user has successfully signed the contract.
4.2. How to avoid repeated renewal after signing a contract
After optimizing the process, you need to initiate an automatic renewal process after the user has successfully signed the contract. You need to make sure that the renewal is not repeated for the user. Here, you can consider using the signed ID as the idempotent element of the order. The same signing ID will only initiate an automatic renewal.
4.3. How to avoid repeated renewal after the expiration of members
When the member expires, the automatic renewal process will be initiated. Here, consider using the member expiration timestamp as the idempotent element of the order. If the renewal of the member is successful, the expiration timestamp of the member will be extended accordingly, which will no longer trigger the logic that the member is about to expire. If the renewal fails, the expiration timestamp of the member remains the same, and multiple renewal orders will not be initiated.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.