java - Paypal Java SDK - 如何配置 .properties 文件?

标签 java paypal

我正在尝试通过 Java Paypal SDK 连接到我的 Paypal 企业帐户以自动发送发票。我这样配置 .properties 文件:

http.ConnectionTimeOut=5000
http.Retry=1
http.ReadTimeOut=30000
http.MaxConnection=100

# HTTP Proxy configuration
# If you are using proxy set http.UseProxy to true and replace the following         
values with your proxy parameters
http.ProxyPort=8080
http.ProxyHost=127.0.0.1
http.UseProxy=false
http.ProxyUserName=null
http.ProxyPassword=null

#Set this property to true if you are using the PayPal SDK within a Google   
App Engine java app
http.GoogleAppEngine = false

# Service Configuration
service.EndPoint=https://api.sandbox.paypal.com
# Live EndPoint
# service.EndPoint=https://api.paypal.com

# Credentials
clientId=ID (of SANDBOX API CREDENTIALS)
clientSecret=SECRET (of SANDBOX API CREDENTIALS)

# Webhook Validation
#webhook.trustCert=DigiCertSHA2ExtendedValidationServerCA.crt

当它连接时,我收到“错误消息:没有在应用程序属性中配置 API 帐户”。我的 .properties 文件有什么问题?

最佳答案

关于java - Paypal Java SDK - 如何配置 .properties 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37138309/

相关文章:

php - 如果选择了特定的付款选项(woocommerce/php),则覆盖付款接收方

curl - 来自沙箱的 PayPal 权限服务 -> RequestPermissions CURL 示例返回错误 500000 响应

php - Paypal类文件错误

java - 如何在自定义 Android 应用程序中实现 "share on whatsapp"功能?

java - 在下一个 Activity 中创建列表之前,在加载屏幕中显示一个计数器(对列表项进行计数)

java - 如何在 if else 循环中对同一数据使用多个条件? - java/安卓

paypal - 获取 Onboarding API 的 PayPal 合作伙伴 ID

java - Java继承的另一个问题?

Java打印和多线程

paypal - Wordpress cp-appointment-calendar 重定向到 paypal 问题