0
votes

Documentation says:

Chained payments are useful in cases when the primary receiver acts as an agent for other receivers. The sender deals only with the primary receiver and does not know about the secondary receivers, including how a payment is split among receivers.

I'm doing this request:

{
    "returnUrl": "http://localhost", 
    "currencyCode": "USD", 
    "receiverList": { "receiver": [
        {
            "amount": "5.00", 
            "email": "[email protected]",
            "priamry": true
        }, 
        {
            "amount": "10.00",
            "email": "[email protected]"
        }]}, 
    "actionType": "PAY", 
    "cancelUrl": "http://localhost", 
    "requestEnvelope": {"detailLevel": "ReturnAll", "errorLanguage": "en_US"}
}

I was expecting to see the invoice for $15 to [email protected] which is Primary Receiver. But I see:

facilitator account's Test Store $5.00 USD

VLADIMIR SAPRONOV $10.00 USD

Total: $15.00 US

It doesn't look like "sender deals only with primary receiver". How to make it the way it's described in the documentation - want to see only transaction for $15 to Primary Receiver?

1
Please check the spelling, it is priamry, you shoud set it to primary, Most probably this solves your problemantoniom

1 Answers

0
votes

The comment from @antoniom is absolutely right. Also the amount to primary receiver should be changed to be more then amount to secondary receiver.

Here is right working example:

{
    "returnUrl": "http://localhost", 
    "currencyCode": "USD", 
    "receiverList": { "receiver": [
        {
            "amount": 15.00, 
            "email": "[email protected]",
            "primary": true
        }, 
        {
            "amount": 10.00,
            "email": "[email protected]"
        }]}, 
    "actionType": "PAY", 
    "cancelUrl": "http://localhost", 
    "requestEnvelope": {"detailLevel": "ReturnAll", "errorLanguage": "en_US"}
}