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

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

问题描述

我正在尝试从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天全站免登陆