2
votes

Does anyone know if the Payflow Pro Gateway Java SDK will run on a 64 bit machine? (Specifically in ColdFusion CF9/10/11 if that makes any difference.)

The most recent version of the SDK is found here: http://paypal.github.io/sdk/#payflow-gateway

It is version Payflow_SDK_for_Java_v440.zip (version 4.4.0).

I am running successful transactions from my local machine with CF9. I know that my Java VM is 64 bit, as per this setting seen in CF9:

Java VM Name: Java HotSpot(TM) 64-Bit Server VM

But does this setting prove that the SDK is running fully on 64 bit? (My local machine is Window 7 with 32/64bit option, so it's hard for me to know for sure.)

The reason I ask is because I'm having trouble getting the SDK to work on a new Windows Server 2012.

Paypal says that the Java version requires Xerces Java Parser version 2.7.1 from Apache. I don't know what that is or if it's already on the server so that could be part of my problem. (I have no idea if it's on my local machine either.)

I have asked Paypal if it should work on 64 bit and they say no, but I doubt the competence of their front-line techs. (They are also telling me that the most recent version is 4.3 which of course is not true.)

Thank you!

1
Specifically what kind of trouble? Posting some code and any error messages would help others to diagnose the issue. It does sounds like you are running CF 64bit. Though it should not make a difference unless maybe native libraries are involved. Regarding Xerces, it is bundled with most versions of CF. Try cfdumping the version, ie createObject("Java", "org.apache.xerces.impl.Version").getVersion(). If that does not work in CF9, check your {cf_root}\lib directory for a file name like xercesImpl.jar. You can check the manifest for the version number. - Leigh
Thanks Leigh. On my local machine I do have xercesImpl.jar. I'm not sure about on the server, I'll have to ask my host. - Billy Turtleneck
The trouble I am having on the new server is that the SDK simply does not work at all - doesn't even create the log file and no record in Paypal Manager. I can get more info but just realized I need to update my SSL cert before proceeding. Question: If my Java VM on my local machine is 64 bit, and if this Java SDK is working on my local machine, then does that mean that it works in 64 bit? (Or could it still somehow be running on 32 bit on my local machine?) - Billy Turtleneck
In the CF Admin you will be able to tell if you are running one or the other billy. Go to the settings summary page. - Mark A Kruger
I'm wondering why are you using the Java gateway? I think that is from 2007 or so and very outdated. For prerequisites it lists Xerces Java Parser version 2.7.1 from Apache which is from 2007 and Java 1.4 and that is long dead. Today all you need to access the PayPal API is <CFHTTP ...> over SSL. The caveats there is that with TLS1.0 is dropping off soon, only CF10u18 on Java 1.8, ColdFusion 11 on Java 1.8 or ColdFusion2016 on Java 1.8 will handle TLS1.1 or TLS1.2. - WilGeno

1 Answers

2
votes

We installed the Payflow java SDK a few weeks ago on an amd64 Windows Server 2012 R2 and it works great.

And we also got responses from PayPal saying that it should work in 64 bit, and that v4.4 is current and supported.

So that answers the question. Yes, it will work in 64 bit!

PS Anyone developing new PayPal integration on ColdFusion should probably use CFHTTP method instead as @WilGeno mentioned.

Thanks to @Leigh for all his help!