Can somebody help me in configuring the error messages from
cybersource for credit card validation?
I mean where exactly i can.
I was getting some error message like this when i dispaly the eroor
messages from the from Handler.
"The credit card Visa could not be authorized for payment: We
encountered an FDC problem:FIP reason:Unknown error.Unknown error"
Thanks
Lal
The first part of that message is contained in the resource file atg.commerce.order.OrderResources, with resource key FailedCreditCardAuthorization. You can override that to say whatever you want.
The second part of the message (starting with “We encountered an FDC problem…”) comes directly from Cybersource. It can’t be configured in ATG. If you would prefer to not show that part of the message, you can do that by changing the FailedCreditCardAuthorization resource, which currently takes the message from Cybersource as an input parameter.
hope this is clear enough.
On Nov 8, 7:06 pm, "O'Brien, Paul" <pobr...@atg.com> wrote:
> The first part of that message is contained in the resource file
> atg.commerce.order.OrderResources, with resource key
> FailedCreditCardAuthorization. You can override that to say whatever
> you want.
>
> The second part of the message (starting with "We encountered an FDC
> problem...") comes directly from Cybersource. It can't be configured in
> ATG. If you would prefer to not show that part of the message, you can
> do that by changing the FailedCreditCardAuthorization resource, which
> currently takes the message from Cybersource as an input parameter.
>
> -----Original Message-----
> From: atg_...@googlegroups.com [mailto:atg_...@googlegroups.com] On
>
> Behalf Of madhulal...@gmail.com
But where I think you'd want to configure the error messages is in
atg.integrations.cybersource.CyberSourceStatus. This class is
instantiated after each cybersource request (of either type), and its
constructor take the Cybersource reply as it's lone parameter. It
passes the reply to a setValues method, which populates the properties
of the class based on the contents of the reply. You could override
that method to do any other processing of the reply that you want.
Specifically, it is the "errorMessage" property of CyberSourceStatus
that is used in the second half of the error message you mentioned. So
changing the value of that property here would affect the message you
see.
public CreditCardStatus performAuthORCredit(CreditCardInfo ccinfo,
String pCommand)
throws ICSException (
CyberSourceStatus status = (CyberSourceStatus)
super.performAuthORCredit(ccinfo, pCommand);
ICSReply icsReply = (ICSReply) status.getValues();
return ExtendedCyberSourceStatus(icsReply);
}
That way, your extended status class will be used.