小编Ami*_*mar的帖子

Paypal适应性支付

我想向两个接收者付款,即买家购买100件商品,接收器1购买90件,接收器2购买10件.我使用链式付款方式.我在接收者1的帐户中获得100,这是可以的,但我无法获得接收者2的付款.接收方的帐户ID已设置,但未在此处给出.我做错了什么?谢谢

<?php
require_once('../includes/config.php');
require_once('../includes/paypal.class.php');

$PayPalConfig = array(
                      'Sandbox' => $sandbox,
                      'DeveloperAccountEmail' => $developer_account_email,
                      'ApplicationID' => $application_id,
                      'DeviceID' => $device_id,
                      'IPAddress' => $_SERVER['REMOTE_ADDR'],
                      'APIUsername' => $api_username,
                      'APIPassword' => $api_password,
                      'APISignature' => $api_signature,
                      'APISubject' => $api_subject
                    );

$PayPal = new PayPal_Adaptive($PayPalConfig);

$PayRequestFields = array(
                        'ActionType' => 'PAY_PRIMARY',                              
                        'CancelURL' => $domain.'cancel.php',                        
                        'CurrencyCode' => 'USD',                                
                        'FeesPayer' => 'EACHRECEIVER',                                  
                        'IPNNotificationURL' => '',                         
                        'Memo' => '',                                       
                        'Pin' => '',                                        
                        'PreapprovalKey' => '',                              
                        'ReturnURL' => $domain.'return.php',                                    
                        'ReverseAllParallelPaymentsOnError' => '',          
                        'SenderEmail' => '',                                
                        'TrackingID' => ''                                  
                        );

$ClientDetailsFields …
Run Code Online (Sandbox Code Playgroud)

paypal paypal-adaptive-payments

0
推荐指数
1
解决办法
1680
查看次数

标签 统计

paypal ×1

paypal-adaptive-payments ×1