Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat else should I send for Paypal chained payments?
    primarykey
    data
    text
    <p>I'm working on an App where a user A can buy up to 10 items from different sellers, so I need to send money to different users at the same time and I'm trying to use Paypal Chained Payments.</p> <p>Right now I'm just playing around with Classic API (Adaptive payments) but I'm just wondering why I'm always getting this error:</p> <pre><code> "The fee payer PRIMARYRECEIVER can only be used if a primary receiver is specified" </code></pre> <p>I already specified a primary receiver and I'm still getting that error.</p> <p>I found these examples: <a href="https://paypal-sdk-samples.herokuapp.com/adaptive_payments/pay" rel="nofollow">https://paypal-sdk-samples.herokuapp.com/adaptive_payments/pay</a> and I tried to do a chained payment:</p> <p>This is my pay request:</p> <pre><code>require 'paypal-sdk-adaptivepayments' @api = PayPal::SDK::AdaptivePayments::API.new # Build request object @pay = @api.build_pay({ :actionType =&gt; "PAY", :cancelUrl =&gt; "https://paypal-sdk-samples.herokuapp.com/adaptive_payments/pay", :currencyCode =&gt; "USD", :feesPayer =&gt; "PRIMARYRECEIVER", :ipnNotificationUrl =&gt; "https://paypal-sdk-samples.herokuapp.com/adaptive_payments/ipn_notify", :receiverList =&gt; { :receiver =&gt; [{ :amount =&gt; 1.0, :email =&gt; "platfo_1255612361_per@gmail.com", :primary =&gt; true }] }, :returnUrl =&gt; "https://paypal-sdk-samples.herokuapp.com/adaptive_payments/pay", :sender =&gt; { :useCredentials =&gt; true } }) # Make API call &amp; get response @pay_response = @api.pay(@pay) </code></pre> <p><strong>And this is the response</strong></p> <pre><code>{ :responseEnvelope =&gt; { :timestamp =&gt; "2013-11-20T05:16:31-08:00", :ack =&gt; "Failure", :correlationId =&gt; "b002d0e27fd33", :build =&gt; "7935900" }, :error =&gt; [{ :errorId =&gt; 580023, :domain =&gt; "PLATFORM", :subdomain =&gt; "Application", :severity =&gt; "Error", :category =&gt; "Application", :message =&gt; "The fee payer PRIMARYRECEIVER can only be used if a primary receiver is specified", :parameter =&gt; [{ :value =&gt; "feesPayer" },{ :value =&gt; "PRIMARYRECEIVER" }] }] } </code></pre> <p>Thanks in advance!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload