简体   繁体   English

在应用程序中记录贝宝付款

[英]Logging PayPal payments in application

I have several ambiguities in using paypal methods and cases, when IPN messages are sent. 发送IPN消息时,我在使用贝宝方法和案例时有一些含糊之处。 Im developing app, in which im using paypal(sandbox) for making deposits and cashouts. 我正在开发应用程序,其中我使用Paypal(sandbox)进行存款和提款。 Each of these both transactions I want to log in my app and here some obscurity raises becouse I need to capture as many cases that may occur. 我想登录我的应用程序进行这两个事务中的每一个,由于我需要捕获可能发生的尽可能多的情况,因此在这里有些晦涩难懂。 So I'll take it gradually and I'll be thankful also for each partial response. 因此,我将逐步采用它,对于每个部分的答复,我也会感激不尽。

Firstly, I have some general questions: 首先,我有一些一般性问题:

In my app, im using BuyNow button , AdaptivePayment methods PAY and PaymentDetails and Merchant method GetTransactionDetails . 在我的应用程序中,我使用BuyNow按钮 ,AdaptivePayment方法PAYPaymentDetails以及商家方法GetTransactionDetails Are these methods part of Bussines account and for free (there are no monthly fees) right? 这些方法是否属于Bussines帐户的一部分,并且是免费的(没有月租费),对吗? I cant afford to pay some monthly fees from begining. 从一开始我就付不起一些月租费。

May arise any problems, when i'll deploy it to non-sanbox environment? 将其部署到非Sanbox环境时可能会出现任何问题?

cashout 兑现

For cashout Im using Adaptive payment PAY method. 对于现金Im,请使用自适应付款方式。

  1. When My app client make a cashout to his/her paypal account, I can catch through IPN message, that payment is completed and using AdaptivePayment PaymentDetails method and Merchant GetTransactionDetails method I can find out, that there is pending status with paymentreview reason. 当我的应用程序客户端向他/她的贝宝帐户提现时 ,我可以通过IPN消息捕获付款已完成,并且可以使用AdaptivePayment PaymentDetails方法和Merchant GetTransactionDetails方法发现有付款审核原因的待处理状态。 So on receiver side, where I dont have access, is payment review possibility. 因此在收款人那边,我没有访问权限,这是付款审查的可能性。 Thus receiver can DENY payment and here is a question, how to get information about this user action, becouse an IPN message doesn't come. 因此,接收方可以拒绝付款,这是一个问题,因为没有IPN消息,如何获取有关此用户操作的信息。

  2. Another case that im facing is when client of my app make cashout to his/her bussines paypal account with different currency from sender (my bussines paypal account). 我面临的另一种情况是,当我的应用程序的客户使用与发送方不同的货币(我的bussines paypal帐户)向他/她的bussines paypal帐户提现。 There is pending status too, but with reason "multicurrency" in IPN message. 也有待处理状态,但IPN消息中的原因为“多币种”。 Here is similar problem to previous point 1)... again, I cant get IPN message, which determine, if user accepted or not the transacion. 这是与先前的点1)相似的问题...同样,我无法获取IPN消息,该消息确定用户是否接受了事务。

deposit 存款

For deposit Im using PayPal standard Buy now button. 使用PayPal标准的“立即购买”按钮存款。

  1. PAYER SIDE(my app client): I dont understand, why there is payment review (accept/deny) in payer account profile, when status of payment is completed? 付款方(我的应用程序客户端):我不明白,付款状态完成后,为什么付款方帐户资料中有付款审核(接受/拒绝)? Is it common behavior only in sandbox environment? 它仅在沙盒环境中是常见行为吗? Or is it possible accept/deny payment on payer side in non-sandbox? 还是可以在非沙盒中的付款方接受/拒绝付款?

  2. RECEIVER SIDE(my bussines paypal account): There is payment review too, on receiver side, and if im right, these links (accept/deny) are similar to links on payer side, arent? 收款方(我的企业的贝宝帐户):收款方也有付款审核,如果没错,这些链接(接受/拒绝)与付款方的链接类似,不是吗? There is refund posibility too, exists some API method to refund programatically? 也有退款的可能性,是否存在一些API程序性退款的方法?

Correct, each of the products you mentioned do not have a monthly fee. 正确,您提到的每个产品都没有月租费。

If a user accepts or denies a pending payment that would trigger another IPN with the completed status. 如果用户接受或拒绝待处理的付款,这将触发另一个具有完成状态的IPN。 Are you saying you've tested this specifically and you're seeing otherwise? 您是说您已经对此进行了专门的测试,但是否另有看法?

Receivers would only have to accept/deny in cases where there is currency conversion or maybe they have fraud filters set to flag specific transactions, etc. In most cases there should be no review necessary. 收款人仅在进行货币兑换或设置欺诈过滤器以标记特定交易等情况下才需要接受/拒绝。在大多数情况下,无需进行审核。

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

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