php - parallel payment or chained payment -


how send payment in 2 users account on single click, want payment freelancer , admin on same time , single click.

example: have $3000,i want pay $2000 freelancer , $1000 admin in single click.

<?php if ($data['accept_freelancer_status1'] == "1") { ?>     <td>          <br>         <br>&nbsp;          <?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 box , notify freelancer</p>                 <?php } else { ?>                     <button type="submit" class="btn btn-success btn-block" style="margin-top: -52px;                             ">pay now</button>                         <?php } ?>                     <?php } ?>  

the adaptive payments api enables send money in many different scenarios, simple complex.

adaptive payments handles payments between sender of payment , 1 or more receivers of payment. application owner, such merchant owns website, owner of widget on social networking site, provider of payment application on mobile phones, , on. application caller of adaptive payments api operations.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

unity3d - Fatal error- Monodevelop-Unity failed to start -