How to use of pay pal java API

家住魔仙堡 提交于 2019-12-04 03:24:27

问题


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 AdaptivePaymentsService into 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!