PayPal Express Integration – Transaction Currency Error

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
9/25/2014 2:16:01 PM
Gravatar
Total Posts 25

PayPal Express Integration – Transaction Currency Error

Hi Joe

I am reconfiguring a site to use PayPal Express integration that was previously using PayPal Standard.

The PayPal Standard integration was working correctly using the currency GBP for our transactions.

The single site is using version 2.4.0.3 with SQL Server, Site Membership Pro 1.0.1.4 and Event Calendar Pro 3.4.1.6 in a dedicated Windows Web Server 2008 R2 VM.

I am currently working on a test copy of the production server and have configured things as per https://www.mojoportal.com/using-paypal-express-checkout.

In use, both SMP and Event Calendar Pro purchases go to PayPal as expected and then return to the site ready for the transaction to be confirmed.  When clicking the “Pay Now” button from the SMP page I get a “No transaction initiated.” error.  From “Pay Now” with Event Calendar Pro, a blank page is shown with a URL such as Events/PayPalGatewayError.aspx?plog=65bf11c1-157c-422b-b15b-00f26efc221f.

There are no errors showing in the system log. 

In the mp_PayPalLog table the RawResponse to the DoExpressCheckoutPayment request typically looks like:

TIMESTAMP=2014%2d09%2d25T18%3a47%3a17Z&CORRELATIONID=8c8f5939e08b5&ACK=Failure&VERSION=3%2e2&BUILD=12932421&L_ERRORCODE0=10444&L_SHORTMESSAGE0=Transaction refused because of an invalid argument. See additional error messages for details%2e&L_LONGMESSAGE0=The transaction currency specified must be the same as previously specified%2e&L_SEVERITYCODE0=Error

This is for both STSEventsPayPalReturnHandler and SiteMembershipPayPalReturnHandler.

For the ExpressCheckout entries in mp_PayPalLog, the CurrencyCode column is either showing USD or blank.  All the historic StandardCheckout entries show GBP without exception.

The commerce settings for the site are set to use the currency GBP.

Do you have any thoughts as to what I may have missed in the setup or the next steps in resolving this?

Thanks for your help on this.

Best regards

Neil

9/25/2014 2:47:50 PM
Gravatar
Total Posts 18439

Re: PayPal Express Integration – Transaction Currency Error

Hi Neil,

Based on the error message it sounds like we need to set the currency before the final post to PayPal for express checkout, apparently this is not required for US/USD, since it worked in my testing and has worked for others, but I do in fact see in the code that we are not setting it there. If that is the problem the fix will be simple. If you are running the latest version of mojoPortal under .NET 4.5 I could send you an updated build of SMP and ECP and you could test the fix.

Best Regards,

Joe

9/25/2014 3:47:26 PM
Gravatar
Total Posts 25

Re: PayPal Express Integration – Transaction Currency Error

Hi Joe

Many thanks for the prompt response.

I’ll upgrade the site to 2.4.0.4 and .NET 4.5 and will be happy to try an updated build of SMP & ECP.

Best regards

Neil

9/25/2014 3:50:07 PM
Gravatar
Total Posts 18439

Re: PayPal Express Integration – Transaction Currency Error

Hi Neil,

Ok, tomorrow morning I will package up new builds and email them to you.

Thanks,

Joe

9/25/2014 4:08:30 PM
Gravatar
Total Posts 18439

Re: PayPal Express Integration – Transaction Currency Error

ps, don't go by what it says in mojoPortal under Administration > System Information for .NET framework version

it will still say 4.0.... after 4.5 is installed, and 4.5 may already be installed. look under Control Panel > Programs to see installed software on the server is the way to check if you have control of the machine.

4.5 replaces 4.0 and is like a service pak, there is no side by side installation of them so once installed all 4.0 sites on the server use it and it is still the 4.0 runtime, kind of confusing but that is the way it is

10/3/2014 12:12:25 PM
Gravatar
Total Posts 25

Re: PayPal Express Integration – Transaction Currency Error

Hi Joe

Thanks for the heads up on .NET 4.5 - it was already installed on the server.

Thanks too for the new builds of SMP and EMP - I have just installed them on the 2.4.0.4 upgraded site and my PayPal transactions are now working fine using Express integration. 

We really appreciate your help on sorting this out.

Best regards

Neil

You must sign in to post in the forums. This thread is closed to new posts.