Paypal中延迟链式付款的付款转帐

时间:2022-10-14 14:08:58

I want to set Delayed Chain Payment of PayPal. I have few questions regarding that:

我想设置PayPal的延迟链式支​​付。我对此几乎没有问题:

  1. How can i set expiration date for transfer amount to the Secondary Receiver?

    如何设置转接金额的到期日期给二级接收方?

  2. How can i transfer amount from Primary Receiver to Secondary Receiver through php?

    如何通过PHP将数量从主接收器传输到辅助接收器?

All the things i have to set in input parameters. So please help me in terms of Parameter.

我必须在输入参数中设置所有的东西。所以请在参数方面帮助我。

My Input Parameters:

我的输入参数:

  $actionType= "PAY_PRIMARY";
  $receiver = array();      
  $receiver[0]['receiverEmail'] = 'admin@gmail.com';
  $receiver[0]['receiverAmount'] =50;
  $receiver[0]['receiverPrimary'] = true;


  $receiver[1]['receiverEmail'] = 'abc007@gmail.com';
  $receiver[1]['receiverAmount'] =30;
  $receiver[1]['receiverPrimary'] = false;

  $optional = array();
  $optional['memo'] = 'memo here';
  $optional['feesPayer'] = 'EACHRECEIVER';
  $cancel_url='http://www.mywebsite.com/cancel.php';
  $return_url='http://www.mywebsite.com/return.php';

I have tried putting start date and End date by putting:

我试过把开始日期和结束日期放在:

$var['startingDate']=date("Y-m-d H:i:s");
 $var['endDate']= date('Y-m-d H:i:s', strtotime('+5 minutes', strtotime($var["startingDate"])));

// The total duration is 5min for transfer the Amount to the secondary User. But it doesn't work.

//将金额转移到次要用户的总持续时间为5分钟。但它不起作用。

1 个解决方案

#1


0  

First you need to generate preapproval, when you are going to generate pre-approval key, you can set time frame of that key:

首先,您需要生成预批准,当您要生成预批准密钥时,您可以设置该密钥的时间范围:

<?php
$startDate  = date('Y-m-d', time());
$endDate = date('Y-m-d',strtotime('+364 days'));

define('PREAPPROVAL_STARTDATE',$startDate);
define('PREAPPROVAL_ENDDATE',$endDate);
define('PREAPPROVAL_MAXNUMBEROFPAYMENTS','10000');
define('PREAPPROVAL_MAXAMOUNT','2000');

You are using correct format, for more you can download from github: https://github.com/paypal/adaptivepayments-sdk-php

您使用的格式正确,您可以从github下载更多内容:https://github.com/paypal/adaptivepayments-sdk-php

#1


0  

First you need to generate preapproval, when you are going to generate pre-approval key, you can set time frame of that key:

首先,您需要生成预批准,当您要生成预批准密钥时,您可以设置该密钥的时间范围:

<?php
$startDate  = date('Y-m-d', time());
$endDate = date('Y-m-d',strtotime('+364 days'));

define('PREAPPROVAL_STARTDATE',$startDate);
define('PREAPPROVAL_ENDDATE',$endDate);
define('PREAPPROVAL_MAXNUMBEROFPAYMENTS','10000');
define('PREAPPROVAL_MAXAMOUNT','2000');

You are using correct format, for more you can download from github: https://github.com/paypal/adaptivepayments-sdk-php

您使用的格式正确,您可以从github下载更多内容:https://github.com/paypal/adaptivepayments-sdk-php