Active Mehcant + Transaction is invalid?


I have followed Cody Fauser's tutorial 'PayPal Express Payments with
and its working fine for me in my local system. But when I try to move
the code in my server, the code is not working.I get the following
"This transaction is invalid. Please return to the recipient's website
to complete your transaction using their regular checkout flow. "

NB: I was logged into the when trying to do the
checkout. Can anyone throw some light into this ?


I also want to add that without even login to the,
I get the same error.

Saurav Chakraborty wrote:

I'm having the same issue, its happening on my laptop tho, I have not
tried to put it on a server yet.

I think something is wrong with paypals test environment... I
commented out

#config.after_initialize do
# ActiveMerchant::Billing::Base.mode = :test

in config/environments/development.rb and it seems to work fine now.
Well, its asking me to log into paypal at least, I try to login but my
login matches my merchant login, so it complains about that. But
still, I think its working fine.

Could you solve the problem ?

I have implemented it with Ruby PayPal SDK. Its working fine for me now.

jerome187 wrote: