Retrieving all Payment info from PayPal App
问题 I've recently been trying to write a Python script to automatically fetch all the payments made or received by a PayPal app, tied to a facilitator account. I'm using the client_id and client_secret from the app, and the official Python API library. import paypalrestsdk import logging logging.basicConfig(level=logging.INFO) paypalrestsdk.configure({ "mode": "sandbox", "client_id": CLIENT_ID, "client_secret": CLIENT_SECRET}) payment_history = paypalrestsdk.Payment.all({"count": 10}) print