我们如何通过单击在两个用户帐户中发送付款,我想在同一时间单击一下向自由职业者和管理员付款。
示例:我有3000美元,我想向自由职业者支付2000美元,单击支付1000美元给管理员。
<?php if ($data['accept_freelancer_status1'] == "1") { ?>
<td>
<br>
<br>
<?php
$mode = "sandbox"; //live
$admin_email = "busineess_mail";
if ($mode == "sandbox") {
$url = "https://www.sandbox.paypal.com/cgi-bin/webscr";
} else {
$url = "https://www.paypal.com/cgi-bin/webscr";
}
?>
<form action="<?php echo $url; ?>" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="hosted_button_id" value="AW72MA4XCQTSA">
<input type="hidden" name="business" value="<?php echo $admin_email; ?>">
<!--<input type="hidden" name="item_name" value="First Amount">-->
<input type="hidden" name="item_name" value="<?php echo $data['project_id']; ?>">
<input type="hidden" name="item_number" value="<?php echo ($this->session_user_detail['user_id']); ?>">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="amount" value="<?php echo $pending_payment; ?>">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="project_id" value="<?php echo $data['project_id']; ?>">
<input type="hidden" name="return" value="<?php echo main_url; ?>/calculation_fst_success">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="cancel_return" value="<?php echo main_url; ?>/cancel">
<input type="hidden" name="notify_url" value="">
<!--<input type="hidden" name="id" value="">-->
<?php if ($data['client_step1'] == "1") { ?>
<p style=" margin-top: -52px;">First Step Complete</p>
<?php } else { ?>
<?php if ($data['frst_payment_dn'] == "1") { ?>
<p style=" padding: 8px 7px;
background-color: #95D195;
color: #fff;
border-radius: 9px;margin-top: -60px; width: 160px;" >
<span style="color:#000;" >First Payment Complete </span>check this box and notify to the freelancer</p>
<?php } else { ?>
<button type="submit" class="btn btn-success btn-block" style="margin-top: -52px;
">Pay now</button>
<?php } ?>
<?php } ?>
答案 0 :(得分:1)
Adaptive Payments API使您可以在从简单到复杂的多种不同场景中汇款。
自适应付款处理付款发件人与付款的一个或多个接收方之间的付款。您是应用程序所有者,例如拥有网站的商家,社交网站上的小部件的所有者,移动电话上的支付应用程序的提供商等。您的应用程序是Adaptive Payments API操作的调用者。
答案 1 :(得分:0)
hlo budy。 链式支付是来自发送者的支付,其间接地分配在多个接收者之间。它是从发送方到接收方的典型支付的扩展,其中称为主接收方的接收方将部分支付传递给称为辅助接收方的其他接收方。 和
并行付款使发件人能够向多个接收者发送单笔付款。例如,您的应用程序可能是一个购物车,使买方能够通过一次付款从多个商家购买商品。您的购物车将付款分配给实际提供商品的商家。 PayPal然后从发件人的帐户中扣除款项并将其存入收款人的帐户。