Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mslinn/paypalbutton
Adapted to SBT from Paypal's zip file
https://github.com/mslinn/paypalbutton
Last synced: about 2 months ago
JSON representation
Adapted to SBT from Paypal's zip file
- Host: GitHub
- URL: https://github.com/mslinn/paypalbutton
- Owner: mslinn
- Created: 2013-07-03T12:21:47.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-03T18:12:15.000Z (over 11 years ago)
- Last Synced: 2024-10-12T09:45:39.368Z (3 months ago)
- Language: Java
- Homepage: https://www.paypal.com/us/cgi-bin/webscr?cmd=p/xcl/rec/ewp-code
- Size: 164 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Required Packages
-----------------
An OpenSSL distribution is required for this Java client to work, available from http://www.openssl.org.Package Installation
---------------------
* Use key.bat (for Windows) or key.sh (for UNIX) to generate public and private key pair, as well as a PKCS12 file which contains the user's private key and certificate.Building the ButtonEncryption Application
------------------------------------------````
sbt compile
````To run the example code
------------------------````
sbt 'run-main ButtonEncryption '
````For example,
````
sbt 'run-main ButtonEncryption my-pubcert.pem my-prvkey.p12 paypal_pubcert.pem password cmd=_xclick,[email protected],amount=23.00,currency_code=USD,item_name=todos son asi,cert_id=ZWTMUVWGGH8T8" java_bn.html'
````If you would like to use Sandbox, please add the word "sandbox" as last argument. For example,
````
sbt 'run-main ButtonEncryption my-pubcert.pem my-prvkey.p12 paypal_pubcert.pem password "cmd=_xclick,[email protected],amount=23.00,currency_code=USD,item_name=todos son asi,cert_id=ZWTMUVWGGH8T8" java_bn.html sandbox'
````Files included in this distribution
------------------------------------1) The `ButtonEncryption` project. This project is a java application that will take command line options and in end, an Html file will be generated which you can use to test your settings.
2) `key.bat`, a batch file that will generate a public and private key pair, as well as a PKCS12 file which contains user's private key and certificate on windows. Just run "key " and it will genereate basename-prvkey.pem, basename-pubcert.pem and basename-prvkey.p12. This also requires the "OpenSSL for Windows" package.
3) `Key.sh`, a shell script that will generate a public and private key pair, as well as a PKCS12 file which contains user's private key and certificate on UNIX. Just run "key.sh " and it will generate basename-prvkey.pem, basename-pubcert.pem and basename-prvkey.p12.
4) sbt project files to build with Scala 2.10.2
Important
---------See [Using Encrypted Website Payments to Protect Your Payment Buttons](https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/encryptedwebpayments/#id08A3I0QC0X4)