Test Paypal Payments
How to configure a development system to receive paypal payments
Edit your local_conf.rb configuration file:
UserSystem::CONFIG[:paypal_id] = 'receiver@email-provider.com' # who will receive payments. # set AM in test mode ActiveMerchant::Billing::Base.gateway_mode == :test ActiveMerchant::Billing::Base.integration_mode = :test
To receive paypal notifications, you should use a real IP address and breakout should be configured to generate such urls, before posting to paypal, check the generated html and look if all urls that will be posted to paypal are fine (notify, cancel,etc.)
Restart rails if it is running. Now you should be able to do paypal sandbox payments.
How to get a test account
If you do not have paypal sandbox account, you should get it here (or ask me and i will provide one). Login to your sandbox and sign up 2 users: payer@email-provider.com, receiver@email-provider.com, you can use other emails.
Test Credit Card payments
How to configure a development system to receive credit card payments
UserSystem::CONFIG.update(
:authorized_net_login => '<login>',
:authorized_net_password => 'pass'
)
# set AM in test mode
ActiveMerchant::Billing::Base.gateway_mode == :test
#ActiveMerchant::Billing::Base.integration_mode = :test # be sure to comment such line.
Test account and test credit card numbers
Ask Andy for a test account.
You can use visa test credit card number: 4111 1111 1111 1111