payment on davidchua https://dchua.com/tags/payment/ Recent content in payment on davidchua Hugo -- gohugo.io en-us Mon, 24 Jun 2013 00:00:00 +0000 Testing PaypalExpress Gateway on ActiveMerchant https://dchua.com/posts/2013-06-24-testing-paypalexpress-gateway-on-activemerchant/ Mon, 24 Jun 2013 00:00:00 +0000 https://dchua.com/posts/2013-06-24-testing-paypalexpress-gateway-on-activemerchant/ Background: ActiveMerchant’s BogusGateway class which is usually used in a Test environment, does not have setup_purchase/setup_authorization method which is used in Paypal’s Express Checkout. This gives an: undefined method `setup_purchase' for # When testing for controller actions that interact with ActiveMerchant’s Paypal Express Gateway. To fix this, according to Skud, you will need to download and unpack the active_merchant and active_utils gems into your local vendor directory. /webapps/myapp/$ gem unpack /path/to/activemerchant-1.