简体   繁体   English

使用PayPal HERE和PayPal API

[英]Working with PayPal HERE and PayPal API

I am trying to use the PayPal Here Sideloader (C# web application). 我正在尝试使用PayPal Here Sideloader(C#Web应用程序)。 I am getting unexpected results where the Application doesn't always return to my web application in Safari (iPad). 我得到了意想不到的结果,其中应用程序并不总是返回到我在Safari(iPad)中的Web应用程序。 Also, it opens a new tab every time. 此外,它每次都会打开一个新选项卡。 So I decided to use IPN to handle processing after the purchase. 所以我决定在购买后使用IPN处理处理。

But while using PayPal HERE, I noticed that check and cash transactions are not calling my IPN Url. 但是在这里使用PayPal时,我注意到支票现金交易并未调用我的IPN网址。 I tried to search transactions using the REST API and I don't even see them. 我尝试使用REST API搜索事务,我甚至都看不到它们。 Credit card and Apple pay transactions work fine. 信用卡和Apple支付交易工作正常。 So my question is two fold. 所以我的问题是双重的。

  1. After speaking to someone at PayPal who might or might not know what they are talking about said something to the effect of, 'those transactions aren't supported'. 在与PayPal的某个人交谈之后,他们可能会或可能不知道他们正在谈论的内容,并说“这些交易不受支持”。 I don't necessarily believe that because if I have the Invoice Id (INV2-XXXX-XXXX-XXXX-XXXX) I can use the REST API to get what I need. 我不一定相信,因为如果我有发票ID(INV2-XXXX-XXXX-XXXX-XXXX),我可以使用REST API来获取我需要的东西。 Was the person correct, or has anyone else done this before? 该人是否正确,或者之前有其他人这样做过吗?

  2. What if I have my custom Order Id (see image), how can I get the Invoice Id? 如果我有自定义订单ID(见图)怎么办,如何获得发票ID? (I've looked at the Invoicing API (REST) and TransactionSearch (NVP) and neither of these return information about the transaction. (我查看了Invoicing API(REST)和TransactionSearch(NVP),这些都没有返回有关事务的信息。 我的帐户上的paypal收据页面

After feeling like I have searched the ENTIRE internet, I saw that the documentation for the iOS and Andriod SDK mentioned the URL for the PayPal Here API. 感觉我已经搜索了整个互联网,我看到iOS和Andriod SDK的文档提到了PayPal Here API的URL。

That url (for production) is https://www.paypal.com/webapps/hereapi/merchant/v1 该网址(用于制作)是https://www.paypal.com/webapps/hereapi/merchant/v1

I just happen to add '/invoices/' to it and got an authentication error. 我恰好在其中添加'/ invoices /'并收到身份验证错误。 Once I was able to authenticate, I see that this returns a list of all 'invoices' processed in PayPal Here. 一旦我能够进行身份验证,我就会看到这会返回PayPal Here中处理的所有“发票”的列表。 You'll need to connect using OAuth2, but the list is what I needed to filter based on order ID. 您需要使用OAuth2进行连接,但列表是我需要根据订单ID进行过滤的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM