PayPal链式付款(钱不会是次要的)

时间:2014-06-12 18:04:56

标签: php paypal payment chained

我正在进行PayPal链式付款。我为客户出售门票并持有电子机票价格的费用。现在我正在沙盒模式下进行测试,这笔资金将用于主要版本,但不会用于次要版本。我正在使用来自angelleye的suberb php脚本

这是付款阵列,在主帐户上我甚至设置了“paypal-facilitator_api1.wetickets.nl”的“API访问”(我不知道是否需要)...我错过了什么?谢谢你的帮助!

Array
(
    [PayRequestFields] => Array
        (
            [ActionType] => PAY_PRIMARY
            [CancelURL] => http://wetickets.nl/shop/450/mark.html?step=4&action=step4&c=BIP4UWQALFV2JK9ECOVKIZJ65XBLZM
            [CurrencyCode] => EUR
            [FeesPayer] => PRIMARYRECEIVER
            [IPNNotificationURL] => 
            [Memo] => 
            [Pin] => 
            [PreapprovalKey] => 
            [ReturnURL] => http://wetickets.nl/shop/450/mark.html?step=4&action=step4&c=BIP4UWQALFV2JK9ECOVKIZJ65XBLZM
            [ReverseAllParallelPaymentsOnError] => 
            [SenderEmail] => 
            [TrackingID] => 
        )

    [ClientDetailsFields] => Array
        (
            [CustomerID] => 
            [CustomerType] => 
            [GeoLocation] => 
            [Model] => 
            [PartnerName] => 
        )

    [Receivers] => Array
        (
            [0] => Array
                (
                    [Amount] => 11.83
                    [Email] => ontvanger@wetickets.nl
                    [InvoiceID] => #4938-mark
                    [PaymentType] => 
                    [PaymentSubType] => 
                    [Phone] => Array
                        (
                            [CountryCode] => 
                            [PhoneNumber] => 
                            [Extension] => 
                        )

                    [Primary] => TRUE
                )

            [1] => Array
                (
                    [Amount] => 1
                    [Email] => paypal-facilitator@wetickets.nl
                    [InvoiceID] => #4938-mark-2
                    [PaymentType] => 
                    [PaymentSubType] => 
                    [Phone] => Array
                        (
                            [CountryCode] => 
                            [PhoneNumber] => 
                            [Extension] => 
                        )

                    [Primary] => false
                )

        )

    [SenderIdentifierFields] => Array
        (
            [UseCredentials] => 
        )

    [AccountIdentifierFields] => Array
        (
            [Email] => 
            [Phone] => Array
                (
                    [CountryCode] => 
                    [PhoneNumber] => 
                    [Extension] => 
                )

        )

)
Array
(
    [Errors] => Array
        (
        )

    [Ack] => Success
    [Build] => 10902368
    [CorrelationID] => 7a97b1666d627
    [Timestamp] => 2014-06-12T10:57:51.419-07:00
    [PayKey] => ---this was the key---
    [PaymentExecStatus] => CREATED
    [RedirectURL] => https://www.sandbox.paypal.com/webscr?cmd=_ap-payment&paykey=--WASTHEKEY---

)

1 个答案:

答案 0 :(得分:0)

PAY_PRIMARY执行延迟链接付款,这意味着在您提交ExecutePayment API调用之前,辅助接收方不会收到任何内容。

如果您希望所有付款一次性发生,那么只需使用PAY而不是PAY_PRIMARY,但您仍然可以设置主接收器,以便付款人只能看到它们。