, wie wir die Zahlung in zwei Benutzerkonto auf Einzelklick senden, möchte ich die Zahlung an den Freiberufler und Admin zur gleichen Zeit und einzigen Klick zu tun.parallele Zahlung oder verkettete Zahlung
Beispiel: Ich habe $ 3000, möchte ich $ 2000 an Freiberufler und $ 1000 an Admin in Einzelklick bezahlen.
<?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 } ?>