Giter Club home page Giter Club logo

Comments (4)

jpablobr avatar jpablobr commented on September 24, 2024

hmmm which one are you setting to :primary => false?

Also, did you set the test mode in your app?

#config/environments/{environment.rb}
App::Application.configure do
  config.setting...
end
ActiveMerchant::Billing::Base.mode = :test

from active_paypal_adaptive_payment.

marcmp avatar marcmp commented on September 24, 2024

Thanks Jose Pablo,

I'm using the following recipients. Just in case, I've created both test accounts as sellers in my paypal sandbox account:

recipients = [{:email => "[email protected]",
                    :amount => 4,
                    :primary => true},
                    {:email => "[email protected]",
                    :amount => 4,
                    :primary => false}]

Also the mode is set to :test properly at the end of the environment.rb in development (my current environment):
ActiveMerchant::Billing::Base.mode = :test

Setting both sellers to :primary => false fixes the problem, but I'm not looking for simple but chained payment.

Any other ideas on what could be wrong?

from active_paypal_adaptive_payment.

marcmp avatar marcmp commented on September 24, 2024

I found out what was going wrong by debugging Paypal's response from setup_purchase call. Adaptative Chained Payments are a lot trickier than simple Adaptative because not everything is permited...

What happened was that Paypal won't accept certain chained adaptative payments. The errors I was given were:

  • "The amount for the primary receiver must be greater than or equal to the total of other chained receiver amounts"
  • "The receiver [email protected] does not accept payments in this Currency"
  • "Account [email protected] is restricted" => This means that we need to create the account for primary sellers

from active_paypal_adaptive_payment.

jpablobr avatar jpablobr commented on September 24, 2024

🔨 :)

from active_paypal_adaptive_payment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.