Giter Club home page Giter Club logo

Comments (7)

arnaud avatar arnaud commented on June 22, 2024

@jpablobr I'm facing the same issue. Could you elaborate on what you did to solve this issue?

from active_paypal_adaptive_payment.

jpablobr avatar jpablobr commented on June 22, 2024

I don't remember quit well, but I belive it was an error due to using production environment setting and combining it with development setting on heroku. If you are testing your app on Heroku maybe PayPal is complaining about the subdomain thing (yourapp.heroku.com). I'll ask a friend who is the one that was actually having the problem and I'll get back to you here.

from active_paypal_adaptive_payment.

jpablobr avatar jpablobr commented on June 22, 2024

@arnaud Yeah, it was a problem with the environments; in the config/environment/production.rb be sure to remove #ActiveMerchant::Billing::Base.mode = :test

from active_paypal_adaptive_payment.

arnaud avatar arnaud commented on June 22, 2024

@jpablobr Thanks for the follow-up. The sad thing is that I don't have this line. Well, I may have to submit a stackoverflow post then :)

from active_paypal_adaptive_payment.

jpablobr avatar jpablobr commented on June 22, 2024

@arnaud so, in development environment using your test PayPal sandbox credentials it works fine?

Also, in case you are using Spree, in the config settings Payment Methods (in admin), the environment should reflect the PayPal environment. For example, in production the server should not be configure to test.

from active_paypal_adaptive_payment.

arnaud avatar arnaud commented on June 22, 2024

It wasn't working on development. And you nailed it: the following line was missing from my development.rb file:
ActiveMerchant::Billing::Base.mode = :test
Adding this line to development.rb did the trick.
Thanks!

from active_paypal_adaptive_payment.

jpablobr avatar jpablobr commented on June 22, 2024

@arnaud cool! glad it worked :)

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.