简体   繁体   English

通过一次PHP交易支付到两个Paypal帐户

[英]Pay to two Paypal Account Through Single PHP Transaction

I am trying to integrate paypal in the website. 我正在尝试将Paypal集成到网站中。 I know how to integrate it. 我知道如何整合它。 I have the Script with me and its working fine. 我有脚本,并且脚本运行良好。 But I have a small problem. 但是我有一个小问题。 I want to have two transaction through single transaction: 我想通过一次交易进行两次交易:

Like I have a Service Provider, One is website owner and other is Customer. 就像我有服务提供商一样,一个是网站所有者,另一个是客户。 If customer Pays a $100 from Paypal. 如果客户从Paypal支付$ 100。 Then My Service Provider will get $95 and Website Owner will be getting $5. 然后,我的服务提供商将获得95美元,网站所有者将获得5美元。 Is it possible? 可能吗?

I have the script that can pay $100 to only one person. 我有只可以向一个人支付$ 100的脚本。

I am using the Wordpress CMS. 我正在使用Wordpress CMS。

I created the following form: 我创建了以下表单:

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" id="paypal_form" name="paypal_form" method="post">
<input type="hidden" value="2" name="rm">
<input type="hidden" value="_xclick" name="cmd">
<input type="hidden" value="utf-8" name="charset">
<input type="hidden" value="nikg510@gmail.com" name="business">
<input type="hidden" value="return-url" name="return">
<input type="hidden" value="cancel-url" name="cancel_return">
<input type="hidden" value="notify-url" name="notify_url">
<input type="hidden" value="Booking for 'Birth Part 3'" name="item_name">
<input type="hidden" value="25" name="item_number">
<input type="hidden" value="EUR" name="currency_code">
<input type="hidden" value="20" name="amount">
<input type="hidden" value="1" name="quantity">
<input type="submit" value="Pay via Paypal">
</form>

I encrypted the URL's for Security Reasons. 我出于安全原因对网址进行了加密。 With This I can pay to only one Person. 有了这个,我只能付给一个人。 Not to the Two. 不给两个。

Regards 问候

You need to implement Adaptive paypal api. 您需要实现自适应paypal API。 You can go through this link https://developer.paypal.com/webapps/developer/docs/classic/products/adaptive-payments/ or here is the good plugin for Adaptive paypal 您可以通过此链接https://developer.paypal.com/webapps/developer/docs/classic/products/adaptive-payments/或这是自适应paypal的好插件

https://easydigitaldownloads.com/extension/paypal-adaptive-payments/ https://easydigitaldownloads.com/extension/paypal-adaptive-payments/

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

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