简体   繁体   English

我应该使用哪个Paypal API来支付员工的薪水?

[英]Which Paypal API Should i use to pay our employee's?

We are building a system in our intranet to easy and quickly pay to our external employees for their monthly services, the quantities to be paid change every couple of weeks. 我们正在Intranet中构建一个系统,以方便快捷地向外部员工支付其每月服务费用,支付的数量每两周更改一次。

According to this Question we have mainly two options to pay to our employees 根据这个问题,我们主要有两种向员工付款的选择

  • Mass Payments : We can't use it because we dont get the minimum required amount of money yet 大笔付款:我们无法使用它,因为我们尚未获得所需的最低金额
  • Adaptive Payments 适应性付款

So we choosed the second one, We took the adaptivepayments-sdk-php and decided to use the simplest way to perform a payment from our own account to a person having a basic paypal account by email, here's the code to do that: 因此,我们选择了第二个,我们选择了adaptivepayments-sdk-php,并决定使用最简单的方法通过电子邮件从我们自己的帐户向拥有基本贝宝帐户的人执行付款,这是执行此操作的代码:

 #Create Request
 $receiver = new Receiver();
 $receiver->email = 'the.employee.email@example.com';
 $receiver->amount = '10';
 $receiver->paymentType = 'SERVICE';

 $receiverList = new ReceiverList($receiver);
 $cancelUrl='...';
 $returnUrl='...';
 $payRequest = new PayRequest(new RequestEnvelope("en_US"),'PAY', $cancelUrl,'USD',$receiverList,$returnUrl);
 $payRequest->feesPayer = 'SENDER';

 #Send Request
 $service = new AdaptivePaymentsService();
 $response = $service->Pay($payRequest); 

Would this be the correct approach for our needs? 这是满足我们需求的正确方法吗? or is there a much simpler solution for this? 还是有一个更简单的解决方案?

To use Adaptive payments you need to request an APP ID to paypal on its www.x.com website, the problem is that they ask for TEST URL/USER/PASS and we just can't give away permissions to get into our intranet per our company policy, also i'm not sure if our 'application' is within their guidelines 要使用自适应支付,您需要在其www.x.com网站上请求一个应用程序ID来支付宝,问题是他们要求输入TEST URL / USER / PASS,而我们只是无法放弃每个用户进入我们的Intranet的权限。我们的公司政策,我也不确定我们的“申请”是否在其指导原则之内

Any help would be much appreciated, i feel a bit lost here, 任何帮助将不胜感激,我在这里感到有点失落,

Thanks 谢谢

Mass Payments would be the easiest route to go. 批量付款将是最简单的方法。 There isn't a minimum money requirement and only the following need to be met: 没有最低资金要求,仅需要满足以下条件:

***Note: The criteria may be changed in the future. ***注意:条件将来可能会更改。

If you meet all of the criteria above give a call to PayPal support at 866-837-1851 and request Mass Payments be enabled. 如果您符合上述所有条件,请致电866-837-1851与PayPal支持小组联系,并要求启用“批量付款”。 Even if you send one payment, Mass Payments will be able to facilitate it. 即使您发送一笔付款,“批量付款”也将为您提供便利。

If Mass Payments is not an option then yes Adaptive Payments is the route to go. 如果不能选择“大笔付款”,那么可以选择“自适应付款”。 You'll want to apply for implicit payments so a payment will be sent with each API call. 您将需要申请隐式付款,以便在每次API调用时发送一次付款。 This is a more complicated route but once implemented it can be be used in a very efficient manner. 这是一条更复杂的路线,但一旦实施,便可以非常有效地使用它。

As far as the testing environment, PayPal will need to see the application to ensure it's in compliance with their rules and regulations. 至于测试环境,PayPal将需要查看该应用程序以确保其符合其规则和规定。 If it's possible I'd recommend having an external site with a simple interface on how you plan on using the API. 如果可能的话,我建议您在外部站点上使用一个简单的界面来说明如何计划使用API​​。 PayPal having access the the intranet is not a requirement. PayPal无需访问Intranet。

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

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