Greetings all,
I'm having some difficulties processing a payment using the CPayment.ProcessPayment method for the IBOs on IMIS 15. Within the desktop IMIS interface, we're not having any trouble processing credticard payments via PayPal (the out-of-the-box payment gateway), but whenever I try to invoke the ProcessPayment method using the IBO's, PayPal comes back with a "User Authentication Failed" message.
I've added the below lines to the web.config according to the setup instructions:
<paymentGatewayService defaultProvider="PayFlowProPaymentGatewayProvider">
<providers>
<add name="PayFlowProPaymentGatewayProvider" type="Asi.PaymentGateway.PayflowProPaymentGatewayProvider, PayflowProPaymentGatewayProvider" authorizationAccounts="VERISIGN,PaymentTech"/>
<add name="NoProcessingPaymentGatewayProvider" type="Asi.PaymentGateway.NoProcessingPaymentGatewayProvider, NoProcessingPaymentGatewayProvider" authorizationAccounts="NOPROCESS"/>
</providers>
</paymentGatewayService>
And below is the payment object setup code, address object setup code, etc., so you can kind of see what I'm doing.
// create the payment
CPayment payment = new CPayment(imis_user) {
PaymentType = EnumPaymentType.CreditCard,
Amount = 1.00M, //this.TotalDue,
CashAccountCode = card_type,
CreditCardNumber = card_number,
CreditCardSecurityCode = card_security,
CreditDebitCardHoldersName = name_on_card,
CreditCardExpiration = card_expiration.ToString("MMyy"),
CreditDebitCardAuthorizationCode = "1"
};
// create the address
CAddressBasic caddress = new CAddressBasic(imis_user) {
Address1 = address.Street1,
Address2 = address.Street2,
City = address.City,
StateProvince = address.StateProvince,
PostalCode = address.PostalCode,
Country = address.Country
};
PayflowProPaymentGatewayResponse pg_response =
payment.ProcessPayment(TransactionType.Sale, caddress) as PayflowProPaymentGatewayResponse;
Any help or insight as to what I might be doing wrong would be greatly appreciated. Thanks much!
Look like this issue related
Look like this issue related with PCI compliance settings in your IMIS, usually if you enable PCI compliance all passwords are saved in encrypted format, otherwise it is a plain text.
Probably your payment provider is not decrypting or the saved with wrong password.