问题
I am developing web application in that i have included pay pal payment system, i am making use of java API my, i have got API key, password and API certificates also, but i dont no where to use that, i have gone through the documentation which is in pay pal but didn't get solutions please help me out. i have downloaded samples from the below links: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_download_sdks
回答1:
Here you can get some guidance:
- Copy 'adaptivepayments-java-sdk.jar' to your class path.
- Copy the configuration file 'sdk_config.properties' in SDK 'resource' folder to your project.
- Import
AdaptivePaymentsServiceinto your code. Load the configuration file into your application with this method call as required:
new AdaptivePaymentsService(new File(".../sdk_config.properties"));- Create a service wrapper object.
- Create a request object as per your project needs.
- Invoke the appropriate method on the service wrapper object.
来源:https://stackoverflow.com/questions/5323646/how-to-use-of-pay-pal-java-api