Google Groups Home
Help | Sign in
Authentication failed with Cybersource
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
supermons...@gmail.com  
View profile
 More options May 12, 12:17 pm
From: supermons...@gmail.com
Date: Mon, 12 May 2008 09:17:51 -0700 (PDT)
Local: Mon, May 12 2008 12:17 pm
Subject: Authentication failed with Cybersource
Hi,

I have a cybersource account and I am trying to use ActiveMerchant
with it. I generated a transaction security page under my account and
used it in my purchase request.

Here is what I do.

@gateway_login = <my merchant id>
@gateway_pass = <generated transaction key>
@order_id = self.current_user.login + '@' + Time.now.to_s
@card = ActiveMerchant::Billing::CreditCard.new(params[:card])
gateway = ActiveMerchant::Billing::CyberSourceGateway.new(:login =>
@gateway_login, :password => @gateway_pass)
gateway_response = gateway.purchase(100, @card, :order_id =>
@order_id, :email => self.current_user.email)

And here is the response I got.
wsse:FailedCheck: Security Data : UsernameToken authentication failed.

Am I missing some setup?  Also, is there a way to look at the SOAP
message being sent to their server?

Thanks
Andy


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cody Fauser  
View profile
 More options May 12, 1:58 pm
From: "Cody Fauser" <codyfau...@gmail.com>
Date: Mon, 12 May 2008 13:58:33 -0400
Local: Mon, May 12 2008 1:58 pm
Subject: Re: [Active Merchant] Authentication failed with Cybersource
Andy,

Are you using a test account or live production account and are you
using the correct corresponding gateway mode in ActiveMerchant? The
default mode in ActiveMerchant is production.

--
Cody Fauser
http://shopify.com - e-commerce done right
http://www.codyfauser.com - blog
http://peepcode.com/products/activemerchant-pdf - ActiveMerchant PeepCode
http://www.oreilly.com/catalog/rjsrails - RJS Templates for Rails

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
supermons...@gmail.com  
View profile
 More options May 14, 2:37 pm
From: supermons...@gmail.com
Date: Wed, 14 May 2008 11:37:15 -0700 (PDT)
Local: Wed, May 14 2008 2:37 pm
Subject: Re: Authentication failed with Cybersource
Thanks Cody.
It was the problem exactly.

On May 12, 10:58 am, "Cody Fauser" <codyfau...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
TimBooher  
View profile
 More options May 28, 9:42 pm
From: TimBooher <a...@theboohers.org>
Date: Wed, 28 May 2008 18:42:59 -0700 (PDT)
Local: Wed, May 28 2008 9:42 pm
Subject: Re: Authentication failed with Cybersource
I am getting the same error -- but can't seem to get around it so
easily.

I have :

OrderTransaction.gateway =
    ActiveMerchant::Billing::CyberSourceGateway.new(
    :login    => 'v1002822',
    :password => 'my_password',
    :test => true,
    :vat_reg_number => 'your VAT registration number',
    # sets the states/provinces where you have a physical presense for
tax purposes
    :nexus => "GA OH",
    # don‘t want to use AVS so continue processing even if AVS would
have failed
    :ignore_avs => true,
    # don‘t want to use CVV so continue processing even if CVV would
have failed
    :ignore_cvv => true
  )
and the following:
      process('authorization', amount) do |gw|
        gw.authorize(amount, credit_card, options)
      end

where credit_card is a valid activeMerchant::billing:creditCard object
amount and options have their correct values.

i get the error: wsse:FailedCheck: Security Data : UsernameToken
authentication failed.

i am totally confused with this. any thoughts? I know i should use the
xxx.p12 file that CyberSource gave me, but I can't find any
documentation to teach me how to do this. how do i get to that
generated transaction key? is there a special ssl channel we use to
connect?

v/r,

Tim

On May 14, 2:37 pm, supermons...@gmail.com wrote:

On May 14, 2:37 pm, supermons...@gmail.com wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
TimBooher  
View profile
 More options May 28, 9:57 pm
From: TimBooher <a...@theboohers.org>
Date: Wed, 28 May 2008 18:57:18 -0700 (PDT)
Local: Wed, May 28 2008 9:57 pm
Subject: Re: Authentication failed with Cybersource
Part of the problem is that cybersource documentation says:

After you have the security key file or certificate files on your
system, follow
the instructions of your shopping cart provider to integrate these
files with your
shopping cart.

So, I guess it is ActiveMerchant documentation I am looking for?

best,

tim

On May 28, 9:42 pm, TimBooher <a...@theboohers.org> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cody Fauser  
View profile
 More options May 28, 11:09 pm
From: "Cody Fauser" <codyfau...@gmail.com>
Date: Wed, 28 May 2008 23:09:21 -0400
Local: Wed, May 28 2008 11:09 pm
Subject: Re: [Active Merchant] Re: Authentication failed with Cybersource
You don't need the p12 file. That is for another CyberSource API. You
need to generate an API transaction key in the business center and use
that as the password.

--
Cody Fauser
http://shopify.com - e-commerce done right
http://www.codyfauser.com - blog
http://peepcode.com/products/activemerchant-pdf - ActiveMerchant PeepCode
http://www.oreilly.com/catalog/rjsrails - RJS Templates for Rails

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
TimBooher  
View profile
 More options May 29, 10:21 pm
From: TimBooher <a...@theboohers.org>
Date: Thu, 29 May 2008 19:21:43 -0700 (PDT)
Local: Thurs, May 29 2008 10:21 pm
Subject: Re: Authentication failed with Cybersource
Wow -- so seldom have so few words saved a man so much time. thank you
so much, I was going down the completely wrong direction.

One last problem: Since cybersource measures in dollars, is there an
elegant way to covert in my amount. Per the peepcode, I am loading an
amount in cents, so I multiply my amount by 100, this naturally works
but then I have a total amount in my reports in the thousands. I can
divide again by 100, but I am sure there is a better way.

best,

tim

On May 28, 11:09 pm, "Cody Fauser" <codyfau...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google