Having problems with Paypal Java SDK for Encrypted Website Payments[ Edited ]
06-14-2011 11:52 AM - edited 06-14-2011 11:55 AM
I've really been struggling to get working code, good examples...and most importantly, good documentation on how to use Paypal's Java SDK for Encrypting Website Payments.
I went to https://www.paypal.com/us/cgi-bin/?cmd=p/xcl/rec/e
I went to Bouncy Castle's site - http://www.bouncycastle.org/latest_releases.html - to download the latest versions of the following jars :
I then went to http://www.oracle.com/technetwork/java/javase/down
Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files
I put all the JARS in the appropriate folders, updated the classpath and then tried to compile the ClientSide.java class that came with the Paypal Java SDK.
The compiler tells me that there are deprecated classes, showing me the following errors after recompiling with -Xlint.
.\palmb\servlets\paypal\ClientSide.java:98: warning: [deprecation] addSigner(jav
signedGenerator.addSigner( privateKey, certificate, CMSSignedDataGenerator.DIGEST_SHA1 );
.\palmb\servlets\paypal\ClientSide.java:101: warning: [unchecked] unchecked call
to add(E) as a member of the raw type java.util.ArrayList
.\palmb\servlets\paypal\ClientSide.java:103: warning: [deprecation] addCertificatesAndCRLs(java.security.cert.CertStor
.\palmb\servlets\paypal\ClientSide.java:110: warning: [deprecation] generate(org.bouncycastle.cms.CMSProcessable,boole
CMSSignedData signedData = signedGenerator.generate(cmsByteArray, true, "BC");
.\palmb\servlets\paypal\ClientSide.java:115: warning: [deprecation] addKeyTransRecipient(java.security.cert.X509Certif
.\palmb\servlets\paypal\ClientSide.java:116: warning: [deprecation] generate(org.bouncycastle.cms.CMSProcessable,java.
CMSEnvelopedData envData = envGenerator.generate( new CMSProcessableByteArray(signed),
I have Java 1.6 running on my machine. Why hasn't Paypal upgraded their Java SDK??
So then, what are my options at this point? I need help.
Re: Having problems with Paypal Java SDK for Encrypted Website Payments
06-15-2011 12:28 PM
You have very good questions, however PayPal does have a Developer Forum that would be able to better answer your questions. Here is a direct link. I hope this will help.