PayPal User Authentication Failed in IMIS 15 iBOs

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!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

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.
 

 

 

Balaji, you may very well be

Balaji, you may very well be onto something there.  Upon inspecting that object at run-time, it has all the information in it, but the password is definitely encrypted. I somewhat assumed that it would be decrypted upon transmission, but you may very well be right.

However, upon looking at the documentation and the object browser, there's no way to set the password in the CPayment.PaymentAuthorizationAccount object...it's read only. Are you aware of a way to change that value, or decrypt it prior to sending to paypal for authorization?

Password will be decrypted

Password will be decrypted automatically by payment object prior to sending to paypal payment gateway, I think you are using old version of ASI.IBO.DLL. please check whether you are using the latest version of this dll. You can find the latest dll from iMSI15\Net\Bin folder from your iMIS installation

I can confirm "Version=15.1.3.6699" should work ok when you are using iMIS15

Thanks

Balaji, that did it. 

Balaji, that did it.  I included the new ASI.IBO.dll in my web project, but not within the project that builds my business objects dll.  Thanks for the hand!