PayPal Error on Mobile Checkout

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
rlopez
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 96
Joined: Mon Mar 15, 2004 1:08 pm
Contact:

PayPal Error on Mobile Checkout

Post by rlopez » Tue Dec 27, 2016 5:23 am

Since upgrading from Gold R10 to GoldR12 we have seen this error listed below now and then. Since the last upgrade to Gold12SR1 we are seeing this all the time. Checking our logs shows where this order specifically has crashed during the customer's checkout via a mobile device. Checking PayPal all credentials are ok and in our history log files with PayPal there are no issues, showing any problems with payment validations. So if there is something that was missed during the prior upgrade from Gold12 to Gold12SR1 please fill free to share.

This line in the error below concerns me: 'PayPal.PayPalAPIInterfaceService.Model.ErrorType' is defined in an assembly that is not referenced. You must add a
reference to assembly 'PayPalMerchantSDK, Version=2.7.109.0,

Current builds App Data: About AbleCommerce GoldR12SR1 build 9266 shows this: PayPalMerchantSDK: 2.16.117.0



Date: 12/26/2016 8:54:08 PM
Severity: Error
Message: An error has occured at https://XXXXXXX/mobile/PayPalExpressChe ... Action=SET
Exception: c:\inetpub\wwwroot\XXXXXXX\Mobile\PayPalExpressCheckout.aspx.cs(72): error CS0012: The type
'PayPal.PayPalAPIInterfaceService.Model.ErrorType' is defined in an assembly that is not referenced. You must add a
reference to assembly 'PayPalMerchantSDK, Version=2.7.109.0, Culture=neutral, PublicKeyToken=null'.
Stack Trace: at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean
allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath,
Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean
ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context,
Boolean allowCrossApp, Boolean throwIfNotFound)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType,
HttpContext context, Boolean allowCrossApp)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath

virtualPath, String physicalPath)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Thanks again for any feedback on this error
Rick L.
https://www.boatingsolutions.com
We make boat repair easy!

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: PayPal Error on Mobile Checkout

Post by Katie » Wed Dec 28, 2016 6:07 am

Hello Rick,

I'll report the issue to our development team.

Thanks for letting us know.

Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

rlopez
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 96
Joined: Mon Mar 15, 2004 1:08 pm
Contact:

Re: PayPal Error on Mobile Checkout

Post by rlopez » Wed Dec 28, 2016 6:53 am

Thank You Katie for your response,

Just to clarify, there were other earlier post regarding PayPal express checkout problems with the API, buttons i.e. Gold Versions. However, this just occurred after we updated from Gold12 to Gold12SR1 which has AC8-3141 patch for PayPal. This is a BUG because there is no reference to the new version 2.16.117.0. .dll, which occurs when a customer clicks on the PayPal Express checkout button in our mobile site only. It's looking for the old .dll 2.7.109.0. and not the new .dll 2.16.117.0.

My coding skills are less than perfect or i would just fix this myself.

Thank you again for your help.
Rick L.
Rick L.
https://www.boatingsolutions.com
We make boat repair easy!

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: PayPal Error on Mobile Checkout

Post by mazhar » Mon Jan 02, 2017 12:01 am

Hi Rick, You are using WAP/WSP build?

rlopez
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 96
Joined: Mon Mar 15, 2004 1:08 pm
Contact:

Re: PayPal Error on Mobile Checkout

Post by rlopez » Mon Jan 02, 2017 3:06 am

Mazhar
We use WSP build.
Rick L.
https://www.boatingsolutions.com
We make boat repair easy!

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: PayPal Error on Mobile Checkout

Post by mazhar » Mon Jan 02, 2017 4:24 am

I am unable to reproduce this issue in a fresh Gold R12 SR WSP install. In Web application project I confirmed that we are referencing correct DLL version. I wonder if its some cached dll or customization? What was your upgrade path and order in which you applied the upgrades? I wonder if something went wrong during upgrade steps.

rlopez
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 96
Joined: Mon Mar 15, 2004 1:08 pm
Contact:

Re: PayPal Error on Mobile Checkout

Post by rlopez » Mon Jan 02, 2017 6:07 am

Here are the steps we used and use all the time when updating:
We back our production site up including DB. We then downloaded your SR1 WSP patch. We validated the MD5 version all ok. We then stop the IIS on the production server and copy over the folders from the patch. We then restart the IIS server and walla. The patch wiped out Key, Shipping info cred, and PayPal cred. So after reinstalling and then deleting the install folder. All is good with our site accept the little surprise, we got, with the PayPal Express checkout button that fails, when a customer clicks on it to checkout on the mobile site only. This is our procedure on upgrades to our production site.

More Info:
1. We have no customization on the Mobile site.
2. We do have customization on the Storeheader/Storefooter but not on the .ascx files.
3. PayPal blue button on main site and mobile site working great.
4. Restarted the IIS server several times to double check the cache problem all ok.

The error shows clearly that when using the mobile PayPal Express checkout button, there is a failure when referencing (PayPalMerchantSDK, Version=2.7.109.0) The new .dll on our site shows installed (PayPalMerchantSDK: 2.16.117.0). So our upgrade with the SR1 patch is ok, but I do not know why the Xpress button is referencing to the old version when used? Do I need to update the button in PayPal? I've checked all setting's with PayPal and all is good. Still confused as to why the button is referencing the old .dll build. If there is something else we need to do please let me know, as this is hurting out sales, when the customer bails.

Thanks again for your response
Rick L.
Rick L.
https://www.boatingsolutions.com
We make boat repair easy!

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: PayPal Error on Mobile Checkout

Post by Katie » Tue Jan 03, 2017 4:35 am

Hello Rick,

You threw me off when you said the mobile site was generating the PayPal error. In fact, the regular site is not working with Express Checkout as well.

Can you login to your merchant administration and go to the Help > About page? Copy the information displayed in the upper-left box here so we can take a look at your list of files.

Thanks,
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

rlopez
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 96
Joined: Mon Mar 15, 2004 1:08 pm
Contact:

Re: PayPal Error on Mobile Checkout

Post by rlopez » Tue Jan 03, 2017 4:41 am

Katie
Yes you are correct. It is not working on our site as well. Here you go

Code: Select all

AbleCommerce for ASP.NET
VERSION: 7.0.92.9266
Release Label: GoldR12SR1
DATABASE: NHibernate.Dialect.MsSql2005Dialect
.NET CLR v4.0.30319.36373
ASP.NET TRUST: Unrestricted

AjaxControlToolkit: 4.1.51116.0
AntiXssLibrary: 4.0.0.0
Castle.Core: 2.5.1.0
Castle.Windsor: 2.5.1.0
CommerceBuilder: 7.92.6081.12193
CommerceBuilder.AcTestProvider: 7.89.5365.28134
CommerceBuilder.Amazon: 7.91.5742.35316
CommerceBuilder.AustraliaPost: 7.89.5365.28134
CommerceBuilder.AuthorizeNet: 7.92.6081.35353
CommerceBuilder.AuthorizeNetCIM: 7.92.6059.30775
CommerceBuilder.AvaTax: 7.91.5742.35327
CommerceBuilder.BankOfCanada: 7.91.5742.35330
CommerceBuilder.CanadaPost: 7.89.5365.28135
CommerceBuilder.CyberSource: 7.92.5959.27685
CommerceBuilder.DHLInternational: 7.89.5365.28135
CommerceBuilder.ECB: 7.89.5365.28135
CommerceBuilder.EPaymentIntegrator: 7.92.5969.31585
CommerceBuilder.GoogleCheckout: 7.89.5365.28138
CommerceBuilder.InternetSecure: 7.91.5742.35337
CommerceBuilder.Licensing: 7.92.6081.12203
CommerceBuilder.LinkPoint: 7.91.5742.35338
CommerceBuilder.Paradata: 7.89.5365.28136
CommerceBuilder.PayFlowPro: 7.89.5365.28136
CommerceBuilder.PayJunction: 7.91.5742.35343
CommerceBuilder.PaymentechOrbital: 7.92.5959.27691
CommerceBuilder.PayPal: 7.91.5742.35351
CommerceBuilder.Protx: 7.91.5742.35353
CommerceBuilder.SkipJack: 7.91.5742.35358
CommerceBuilder.TaxCloud: 7.92.5959.27694
CommerceBuilder.UI: 7.90.5967.6685
CommerceBuilder.UPS: 7.91.5742.35366
CommerceBuilder.USPS: 7.92.5959.27697
CommerceBuilder.Utility.Csv: 8.0.0.0
CommerceBuilder.WATax: 7.91.5742.35368
CommerceBuilder.WebApi: 7.92.5967.6687
CyberSource.Base: 2.0.0.0
CyberSource.Clients: 5.0.2.0
CyberSource.Clients.XmlSerializers: 5.0.2.0
CyberSource.WSSecurity: 2.0.0.0
CybsWSSecurityIOP: 1.0.0.0
HtmlSanitizationLibrary: 4.0.0.0
ICSharpCode.SharpZipLib: 0.86.0.518
Iesi.Collections: 1.0.1.0
log4net: 1.2.10.0
Lucene.Net: 2.9.4.2
LumenWorks.Framework.IO: 3.8.0.0
Microsoft.Data.Edm: 5.1.0.0
Microsoft.Data.OData: 5.1.0.0
Microsoft.Data.OData.Contrib: 5.1.0.0
Microsoft.Web.Infrastructure: 1.0.0.0
Microsoft.Web.Mvc: 2.0.0.0
MvcContrib: 2.0.95.0
Newtonsoft.Json: 4.5.0.0
NHibernate: 3.3.1.4000
NHibernate.ByteCode.Castle: 3.1.0.4000
NHibernate.Caches.SysCache: 3.3.3.4000
NHibernate.Search: 2.0.2.4000
nsoftware.InPayWeb: 6.0.5849.0
NVelocity: 7.2.0.0
PaygatewayNET: 3.0.0.0
paypal_base: 4.2.1.0
PayPalCoreSDK: 1.7.0.0
PayPalMerchantSDK: 2.16.117.0
SanitizerProviders: 1.0.0.0
System.Net.Http: 4.0.0.0
System.Net.Http.Formatting: 4.0.0.0
System.Spatial: 5.1.0.0
System.Web.Http: 4.0.0.0
System.Web.Http.OData: 0.2.0.0
System.Web.Http.WebHost: 4.0.0.0
System.Web.Mvc: 4.0.0.1
System.Web.Razor: 2.0.0.0
System.Web.WebPages: 2.0.0.0
System.Web.WebPages.Deployment: 2.0.0.0
System.Web.WebPages.Razor: 2.0.0.0
wwHoverPanel: 1.85.0.0
Thanks again for all of your help.
Rick L.
Rick L.
https://www.boatingsolutions.com
We make boat repair easy!

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: PayPal Error on Mobile Checkout

Post by Katie » Tue Jan 03, 2017 5:27 am

I compared your list to another installation using the same version. There are differences, so something went wrong with the upgrade.

These two DLLs in the \BIN\ folder are different from yours. So, you'll need update them with the correct version from Gold R12 SR1.

CommerceBuilder.PayPal: 7.92.6081.35358
CommerceBuilder.UI: 7.92.6081.12204
-------------------------------------------------

This DLL doesn't appear in my list, so you might want to remove it, or at least place it in a temporary folder outside of the installation until we can confirm things are working again.

paypal_base: 4.2.1.0

Please keep me updated. I have an open bug report with the development team that I need to provide feedback on.

Thanks,
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

rlopez
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 96
Joined: Mon Mar 15, 2004 1:08 pm
Contact:

Re: PayPal Error on Mobile Checkout

Post by rlopez » Tue Jan 03, 2017 7:22 am

Ok so I downloaded the Gold 12 SR1 update again and from my original one that I downloaded in Dec I see the .dll's have changed. Anyway I replaced the CommerceBuilder.PayPal: 7.92.6081.35358: CommerceBuilder.UI: 7.92.6081.12204 to these newer versions. I have also removed the paypal_base: 4.2.1.0. Cleared cache on server.
Retested PayPal express checkout and now I get:

(Security Header is not valid) PayPal Express Checkout Failure.

So I re-installed the paypal_base: 4.2.1.0. .dll to test and condition is still the same. Then removed it. What's Ironic is I'm not getting an error in my Able logs when it fails on checkout this time. I still need to test the blue PayPal button to make sure it's working as well.

Any further suggestions, please let me know.
Rick L.
Rick L.
https://www.boatingsolutions.com
We make boat repair easy!

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: PayPal Error on Mobile Checkout

Post by Katie » Tue Jan 03, 2017 8:45 am

So the error is different. That means progress :)

When you are using PayPal Express, is this in Sandbox mode? The reason I ask is because the Sandbox mode requires TLS 1.2. I have to leave the office for a couple hours, but let me do some checking and get back to you.

Thanks
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

rlopez
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 96
Joined: Mon Mar 15, 2004 1:08 pm
Contact:

Re: PayPal Error on Mobile Checkout

Post by rlopez » Tue Jan 03, 2017 11:59 am

No I do not use Sandbox mode.

Thanks for your help
Rick L.
Rick L.
https://www.boatingsolutions.com
We make boat repair easy!

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: PayPal Error on Mobile Checkout

Post by Katie » Tue Jan 03, 2017 1:16 pm

Hi Rick,

I was expecting that you might be using Sandbox mode for Paypal, since their development servers already force support of the TLS 1.2 protocol. For a live account, this change is not supposed to go into effect until June 2017.

So, I'm not sure why you are seeing an error related to the security header. It may be that you still don't have the correct files in place after the upgrade, or something else...

I did some Google searches and found this post -

The Security header is not valid error is only caused for two reasons:

1. Wrong credentials Make sure that you've put your API Username, API Password and API Signature correctly. Sometimes it happens that during copy and paste there is accidently a space added, this would trigger this error. Doublecheck the settings in the Able configuration page.

2. Wrong Endpoint This error would come up if you send the data to the wrong endpoint. Make sure that you sending the live credentials and data to our live endpoint.

Hope this helps,
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: PayPal Error on Mobile Checkout

Post by Katie » Wed Jan 04, 2017 5:28 am

Hi,

It looks like Paypal is working now. Do you know what the problem was?

Thanks,
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

Post Reply