如何获得贝宝销售交易 [英] How to get paypal sale transactions

查看:33
本文介绍了如何获得贝宝销售交易的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将来自 paypal 的订单提取到我的数据库中.当我说订单时,我指的是来自我们在不同地方的 paypal 按钮的订单.

I'm trying to pull in orders from paypal into my database. When I say orders, I mean orders from paypal buttons we have in various places.

我已经深入研究了 REST API,但没有看到任何用于搜索/列出交易的 API.我看到一个付款资源列表,但返回的计数为 0.

I've dove into the REST API, but I don't see any API for searching for / listing transactions. I see a list of payment Resources, but that comes back with count 0.

我还在 API 中看到了销售交易,但它要求提供单个交易 ID.

I also see Sale Transactions in the API but that asks for a single transaction ID.

有没有办法可以定期获得交易?我知道这是可能的,因为我们使用名为 Shipstation 的工具从 Paypal 获取新订单并将它们导入他们的系统.

Is there a way I can periodically get transactions? I know this is possible because we use a tool called Shipstation that grabs new orders from Paypal and brings them into their system.

谢谢!

推荐答案

您可以使用 REST API 来做您想做的事情.您可以使用GetPaymentList 来执行此操作.这是来自 PayPal Github PHP 主页的示例代码.您需要安装和使用 PayPal PHP SDK.

You can use REST APIs to do what you are wanting to do. You can use GetPaymentList to do this. This is sample code from the PayPal Github PHP homepage. You will need to install and use the PayPal PHP SDK.

这篇关于如何获得贝宝销售交易的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆