本文介绍了计费协议令牌寿命的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我创建贝宝付款协议时,它会返回带令牌的REDIRECT链接.

When I create an agreement for paypal payment, it return the REDIRECT link with a token.

用户必须通过此链接连接到Paypal并接受协议,然后我才能执行协议.

The user must connect to paypal via this link and accept agreement, then I can execute agreement.

我想知道REDIRECT链接(及其关联的令牌)有效期是多长时间?我问是因为我想要最高的预先计算协议并将其放在缓存中,所以如果用户要订阅,我会使用缓存的REDIRECT链接,而且速度很快.创建协议呼叫需要2秒钟的时间,太长了,在结帐阶段,速度至关重要.

I want to know, how long the REDIRECT link (and its assoicated token) is valid ? I ask because I want top precompute agreement and put them in cache, so If user want to subscribe I use a cached REDIRECT link and it's fast. Create agreement call take 2 seconds, it's too long, speed is critical at checkout stage.

我使用REST API + Java.

I use the REST API + Java.

推荐答案

Express Checkout令牌(这是REST API为Billing Agreement调用返回的内容)在3小时后失效.

Express Checkout tokens (which is what REST API returns for the Billing Agreement calls) expire after 3 hours.

这篇关于计费协议令牌寿命的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 17:50