Comments (4)
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.
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.
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.
🔨 :)
from active_paypal_adaptive_payment.
Related Issues (20)
- What parameters does paypal send back when it redirects to my site? HOT 4
- Not receiving a response from the IPN when ipn_notification_url is called HOT 3
- :start_time and :end_time for preapproved payments do not include GMT offset HOT 2
- This transaction is invalid. Please return to the recipient's website and try again. HOT 5
- Inconsistent naming of IPN keys HOT 3
- its possible send ClientDetails Fields? HOT 3
- payment is completed without the sender logging in to paypal.com HOT 1
- No ipn field provided for preapprove_payment HOT 1
- Refund method NO_API_ACCESS_TO_RECEIVER HOT 4
- How to send a single payment to a single user? HOT 1
- How to send an implicit approval payment?
- Setting the item description for the Payee HOT 2
- payKey issue HOT 5
- Embedded payment not working?
- Chained payments not working?
- how i implement this in rails app
- item description, support for Embedded flow?
- Your tutorial video link does not work
- Set payments as "Family and friends"
- Adaptive Payment Refund functionality Issue The refund's Error receiver [email protected] wasn't part of the payment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from active_paypal_adaptive_payment.