Payflow Gateway - User authentication failed

671 views
Skip to first unread message

rah...@gmail.com

unread,
Apr 25, 2008, 6:41:35 PM4/25/08
to Active Merchant
I got the weirdest problem using Payflow Pro. I'm running a standard
test setup but I keep getting back 'user authentication failed'.

This is how the gateway is setup:

gateway = ActiveMerchant::Billing::PayflowGateway.new(
:login => 'my_vendor_name', :password => 'mypassword'
)

I also setup a dummy credit card object with no problem.

However, when I do:
gateway.authorize(100,credit_card)

I'll get:

#<ActiveMerchant::Billing::PayflowResponse:0x1b74f70 @test=true,
@authorization=nil, @success=false, @cvv_result={"message"=>nil,
"code"=>nil}, @fraud_review=nil, @message="User authentication
failed", @avs_result={"message"=>nil, "code"=>nil,
"street_match"=>nil, "postal_match"=>nil}, @params={"message"=>"User
authentication failed", "result"=>"1", "partner"=>"paypal",
"vendor"=>"my_vendor_name"}>

I know Paypal Payflow Manager accounts have user accounts with
passwords for each user. I also know that the password I'm using in my
gateway setting is the Paypal Transaction password.

Am I suppose to put the username and password for a user somewhere
else outside of where I define the gateway?

Thanks to anyone who has an idea of what's happening. The setup worked
before, but I have to be sure I'm not missing something.

Scott

unread,
Apr 26, 2008, 1:41:22 AM4/26/08
to Active Merchant
Payflow gateway generally requires 4 fields on Gateway creation. This
might be the cause of your troubles.

gateway = ActiveMerchant::Billing::PayflowGateway.new(
:user => username,
:login => vendor,
:password => password,
:partner => paypal
)

Scott

rah...@gmail.com

unread,
Apr 26, 2008, 3:30:46 PM4/26/08
to Active Merchant
Thanks for responding Scott. I've tried it this way and multiple
combinations even within the options hash and still no dice. This does
prove that I am on the right path and it may be something wrong with
the account.

Rahsun
Reply all
Reply to author
Forward
0 new messages