THE PARTNER FIELD
The partner field below is optional. If you leave it blank, the default will be PayPal. The other option, apparently, is VeriSign. I have included it here because magical, undocumented parameters confuse people.
in my case, this was the company name without any spaces. It's the same as the merchant login required to log in to the PayflowPro website.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
gateway = ActiveMerchant::Billing::PayflowGateway.new( :login => 'my_company_name', # 'Merchant Login from the login page :user => 'my_username', :password => 'ComPliCatedP4sSw0rd', :partner => 'PayPal' ) credit_card = ActiveMerchant::Billing::CreditCard.new( :number => '5105105105105100', :month => '9', :year => '2011', :first_name => 'Longbob', :last_name => 'Longsen', :verification_value => '123', :type => 'master' ) # Make a $1 purchase (100 cents) response = gateway.purchase(100, credit_card) puts response.success? puts response.message
MOVING FROM A SPIKE TO REAL CODE
Copy the above code, replace your company name, and get that to say "Accepted"... once that's done, check back for my blog entry on the easiest way to set up ActiveMerchant in a Rails app.
ISSUES I EXPERIENCED
PayFlowPro response 26 - Invalid Vendor Account
I was using my username where my merchant login should have been.
PayflowPro response 1 - User authentication failed
Here I was submitting the company name as my :login but was not including my username under :user
com.googlegroups.activemerchant - Payflow Pro Integration
Payflow Gateway - User authentication failed