Home Backend Development PHP Tutorial 关于支付宝支付接口,如何设计自动查询订单状态。

关于支付宝支付接口,如何设计自动查询订单状态。

Mar 27, 2017 pm 03:24 PM
Alipay Payment interface

问题:

受网络环境的影响,同步和异步支付结果的通知,可能会接收不到。  
哪么应该怎么设计自动查询订单状态比较合理呢?  
 
我的疑问是:  
1.如果用计划任务来做,如何准确判断未付款订单是用户完成了支付操作的,还是没有进行支付操作。因为未支付订单也存在检查之后,用户又完成了支付操作的情况。  
 
2. 如果让用户点一个按钮查询订单支付状态,这样的体验又不好。  

解决方案:

1.一般在支付时可以提示会有延迟30分钟至1小时,等下次用户登录时对比下订单和支付宝信息        

2.可以用订单号连接api查询交易状态的。
支付宝提供,使用支付宝的交易id或连接方创建的id进行查询,但需要支付宝那边开通权限。

相关文章:

支付宝支付接口 单笔交易查询接口

关于支付宝支付接口,我这边php该提供给ios什么?要怎么写?

关于支付宝支付接口,如何设计自动查询订单状态。

电商网站使用支付宝转账付款功能代替支付宝支付接口

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to withdraw money from TokenPocket payment platform to Alipay or WeChat How to withdraw money from TokenPocket payment platform to Alipay or WeChat Aug 29, 2024 pm 06:51 PM

Yes, you can withdraw tokens to Alipay or WeChat via TokenPocket: Open the TokenPocket app and select the "Wallet" tab. Select the token you want to withdraw, click "Withdraw" and select "Alipay" or "WeChat". Enter the withdrawal amount and confirm the withdrawal address. Pay the handling fee and confirm the withdrawal request, and wait a few minutes to a few hours for the withdrawal to be completed.

How to withdraw money from Bitget Wallet to Alipay How to withdraw money from Bitget Wallet to Alipay Sep 04, 2024 pm 07:25 PM

The steps to withdraw money to Alipay using BitgetWallet are as follows: Open BitgetWallet and enter your password or use your fingerprint to unlock. Click Withdraw to select a cryptocurrency. Enter Alipay information and fill in the payment account number and amount. Select network Select the network that matches the Alipay payment method. Set Handling Fee Confirm the handling fee amount and accept it. Confirm and submit the inspection information and click Confirm. Waiting for confirmation awaits verification by the blockchain network. Fund withdrawals received will be credited to the Alipay payment account.

How to solve the problem of 'Undefined array key 'sign'' error when calling Alipay EasySDK using PHP? How to solve the problem of 'Undefined array key 'sign'' error when calling Alipay EasySDK using PHP? Mar 31, 2025 pm 11:51 PM

Problem Description When calling Alipay EasySDK using PHP, after filling in the parameters according to the official code, an error message was reported during operation: "Undefined...

List of handling fees for okx trading platform List of handling fees for okx trading platform Feb 15, 2025 pm 03:09 PM

The OKX trading platform offers a variety of rates, including transaction fees, withdrawal fees and financing fees. For spot transactions, transaction fees vary according to transaction volume and VIP level, and adopt the "market maker model", that is, the market charges a lower handling fee for each transaction. In addition, OKX also offers a variety of futures contracts, including currency standard contracts, USDT contracts and delivery contracts, and the fee structure of each contract is also different.

Ouyi Exchange app domestic download tutorial Ouyi Exchange app domestic download tutorial Mar 21, 2025 pm 05:42 PM

This article provides a detailed guide to safe download of Ouyi OKX App in China. Due to restrictions on domestic app stores, users are advised to download the App through the official website of Ouyi OKX, or use the QR code provided by the official website to scan and download. During the download process, be sure to verify the official website address, check the application permissions, perform a security scan after installation, and enable two-factor verification. During use, please abide by local laws and regulations, use a safe network environment, protect account security, be vigilant against fraud, and invest rationally. This article is for reference only and does not constitute investment advice. Digital asset transactions are at your own risk.

Sesame Open Door Login Registration Entrance gate.io Exchange Registration Official Website Entrance Sesame Open Door Login Registration Entrance gate.io Exchange Registration Official Website Entrance Mar 04, 2025 pm 04:51 PM

Gate.io (Sesame Open Door) is the world's leading cryptocurrency trading platform. This article provides a complete tutorial on spot trading of Gate.io. The tutorial covers steps such as account registration and login, KYC certification, fiat currency and digital currency recharge, trading pair selection, limit/market transaction orders, and orders and transaction records viewing, helping you quickly get started on the Gate.io platform for cryptocurrency trading. Whether a beginner or a veteran, you can benefit from this tutorial and easily master the Gate.io trading skills.

How to withdraw money from Bitget Wallet Bitpie payment platform to Alipay or WeChat How to withdraw money from Bitget Wallet Bitpie payment platform to Alipay or WeChat Sep 04, 2024 pm 06:57 PM

How to withdraw money to Alipay or WeChat through BitgetWallet? 1. Log in to the BitgetWallet payment platform; 2. Select the asset to be withdrawn; 3. Click the "Withdraw" button; 4. Select the withdrawal method (Alipay or WeChat); 5. Enter the withdrawal amount and payment account number; 6. Confirm and submit.

See all articles