Paypal:使用REST API/Nodejs SDK进行交易的历史记录

编程入门 行业动态 更新时间:2024-10-22 15:42:05
本文介绍了Paypal:使用REST API/Nodejs SDK进行交易的历史记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用推荐的node.js模块 github/paypal/rest-api-sdk-nodejs ,而我正在尝试使用此代码来获取交易:

I'm using the recommended node.js module github/paypal/rest-api-sdk-nodejs and I'm trying to use this code to get the transactions:

// Get Transaction History paypal.payment.list({ 'count': 100, 'sort_by':'create_time', 'sort_order': 'asc', 'start_time': '2008-03-06T11:00:00Z' }, function(error, payment_history){ if(error){ console.error('error', error); response.data.payment_history = {}; } else { console.log('history', payment_history); response.data.payment_history = payment_history; } response.finish(); });

但是payment_history给了我{ count: 0 }.我很确定我从2008年开始就有交易.

but payment_history gives me { count: 0 }. I'm pretty sure that I have transactions since 2008.

我不太确定这是什么问题.用户已经使用access_token登录,我可以显示用户信息,但是我不知道如何获取交易信息.

I'm not really sure what's the problem. The user is already logged in using the access_token and I can display user informations but I have no idea how to pull transaction informations.

推荐答案

查看 developer.paypal/docs/faq/#general-developer-questions ,以获取我可以使用REST API检索使用Classic API创建的交易历史吗?"的答案.

Look into developer.paypal/docs/faq/#general-developer-questions for the answer to "Can I retrieve the history of transactions created using the Classic APIs using the REST API?".

更多推荐

Paypal:使用REST API/Nodejs SDK进行交易的历史记录

本文发布于:2023-10-28 01:06:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1535048.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:历史记录   REST   Paypal   API   SDK

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!