t***o 发帖数: 16 | 1 ======================================
#!/usr/bin/python
import paypalrestsdk
paypalrestsdk.configure({
"mode": "live",
"client_id": "...",
"client_secret": "..." })
payment_history = paypalrestsdk.Payment.all({"count": 10})
print payment_history.payments
======================================
$ ./paypal.py
Traceback (most recent call last):
File "./paypal.py", line 22, in
payment_history = paypalrestsdk.Payment.all({"count": 10})
File "build/bdist.linux-x86_64/egg/paypalrestsdk/resource.py", line 131,
in all
File "build/bdist.linux-x86_64/egg/paypalrestsdk/api.py", line 219, in get
File "build/bdist.linux-x86_64/egg/paypalrestsdk/api.py", line 138, in
request
File "build/bdist.linux-x86_64/egg/paypalrestsdk/api.py", line 166, in
http_call
File "build/bdist.linux-x86_64/egg/paypalrestsdk/api.py", line 195, in
handle_response
paypalrestsdk.exceptions.ServerError: Failed. Response status: 503. Response
message: Service Unavailable. Error message: {"name":"INTERNAL_SERVICE_
ERROR","information_link":"https://api.paypal.com/docs/api/#INTERNAL_SERVICE
_ERROR","debug_id":"14a7e825c5d9d"}
======================================
总是 INTERNAL_SERVICE_ERROR,有谁知道怎么能弄好吗?
是我的账户设置有问题吗? sandbox mode 至少会 return valid value "None".
联系了 PayPal technical support:
https://ppmts.custhelp.com/app/ask_confirm/refno/150520-000453
也没人理。实在烦透了PayPal, 其它哪家的 online payment 比较好,support API
access? Thanks. | k******t 发帖数: 1498 | 2 cool kids use stripe.
【在 t***o 的大作中提到】 : ====================================== : #!/usr/bin/python : import paypalrestsdk : paypalrestsdk.configure({ : "mode": "live", : "client_id": "...", : "client_secret": "..." }) : payment_history = paypalrestsdk.Payment.all({"count": 10}) : print payment_history.payments : ======================================
| ET 发帖数: 10701 | 3 Stripe
Braintree
【在 t***o 的大作中提到】 : ====================================== : #!/usr/bin/python : import paypalrestsdk : paypalrestsdk.configure({ : "mode": "live", : "client_id": "...", : "client_secret": "..." }) : payment_history = paypalrestsdk.Payment.all({"count": 10}) : print payment_history.payments : ======================================
|
|