0

I am trying to get a sandbox PayPal IPN working with the Coldfusion example shown here:

https://github.com/paypal/ipn-code-samples/tree/master/coldfusion

I've added the location of my IPN file to PayPal and the page is being called by it but all I get is a 'Connection Failure' message in the text file. The IPN file is being called from an https location so not sure what is wrong.

Any ideas?

James A Mohler
  • 11,060
  • 15
  • 46
  • 72
csber3
  • 175
  • 2
  • 10
  • First guess: maybe you need to add the certificate of `ipnpb.paypal.com` (and `ipnpb.sandbox.paypal.com`) to coldfusion's keystore. – Seybsen Dec 07 '17 at 10:31
  • ok I can try that but how do I get the certificates for those sites? – csber3 Dec 07 '17 at 12:10
  • Which version of "ColdFusion" are you using? PayPal is updating its services to require TLS 1.2 and CF9 doesn't support it. (I've been able to connect to TLS 1.2 on CF9 using CFX_HTTP5.) – James Moberg Dec 07 '17 at 15:34
  • it's Coldfusion 10, I think the problem may be TLS 1.2 support...or lack of... – csber3 Dec 07 '17 at 16:56
  • 3
    Please review this QA for info on how to upgrade your JRE that supports TLS 1.2: https://stackoverflow.com/questions/47391119/how-to-add-tls-1-2-in-cfhttp-tag-in-coldfusion-10/47422390#47422390 – Scott Jibben Dec 08 '17 at 12:20

1 Answers1

0

The JRE (version 7) that comes with ColdFusion 10, doesn't support TLS 1.2, which you require to talk to the PayPal API. You need to either update the JRE to 113+ and enable TLS 1.2 via argument or upgrade altogether to JRE 8. To upgrade, you have to let the jvm.config point to the installation and replace the tools.jar in CF with the one from the JDK 8. (Also make sure to have at least update 14 installed on your ColdFusion 10 server.)

Alex
  • 7,743
  • 1
  • 18
  • 38