I have followed Cody Fauser's tutorial 'PayPal Express Payments with
ActiveMerchant'
[http://www.codyfauser.com/2008/1/17/paypal-express-payments-with-activemerchant\]
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
error:
"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 developer.paypal.com when trying to do the
checkout. Can anyone throw some light into this ?
I think something is wrong with paypals test environment... I
commented out
#config.after_initialize do
# ActiveMerchant::Billing::Base.mode = :test
#end
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.