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:
> Thanks Cody.
> It was the problem exactly.
> On May 12, 10:58 am, "Cody Fauser" <codyfau...@gmail.com> wrote:
> > 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.
> > On Mon, May 12, 2008 at 12:17 PM, <supermons...@gmail.com> wrote:
> > > 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
> > --
> > Cody Fauserhttp://shopify.com-e-commerce done righthttp://www.codyfauser.com-bloghttp://peepcode.com/products/activemerc... PeepCodehttp://www.oreilly.com/catalog/rjsrails-RJS Templates for Rails
On May 14, 2:37 pm, supermons
...@gmail.com wrote:
> Thanks Cody.
> It was the problem exactly.
> On May 12, 10:58 am, "Cody Fauser" <codyfau...@gmail.com> wrote:
> > 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.
> > On Mon, May 12, 2008 at 12:17 PM, <supermons...@gmail.com> wrote:
> > > 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
> > --
> > Cody Fauserhttp://shopify.com-e-commerce done righthttp://www.codyfauser.com-bloghttp://peepcode.com/products/activemerc... PeepCodehttp://www.oreilly.com/catalog/rjsrails-RJS Templates for Rails