如何使用Pay pal Java API [英] How to use of pay pal java API

查看:53
本文介绍了如何使用Pay pal Java API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Web应用程序,因为我包括了Pay Pal支付系统,我正在使用Java API,我也拥有API密钥,密码和API证书,但是我没有在哪里使用它,我有通过了薪水好朋友的文档,但没有找到解决方案,请帮帮我. 我已经从以下链接下载了示例: https://cms.paypal.com/us/cgi-bin /?cmd = _render-content& content_ID = developer/library_download_sdks

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

推荐答案

Here you can get some guidance:

  • 将"adaptivepayments-java-sdk.jar"复制到您的课程路径中.
  • 将SDK资源"文件夹中的配置文件"sdk_config.properties"复制到您的项目中.
  • AdaptivePaymentsService导入您的代码.
  • 使用所需的此方法调用将配置文件加载到您的应用程序中:

  • 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")); 

  • 创建服务包装对象.
  • 根据您的项目需求创建一个请求对象.
  • 在服务包装对象上调用适当的方法.
  • 这篇关于如何使用Pay pal Java API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆