You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,22 @@ If you find this project is useful consider donating or [sponsor](https://github
28
28
29
29
You need obtain your own credentials with Paypal that may include a paypal personal or business account and access as developer. Please view the official [Paypal Developer](https://developer.paypal.com/home)
30
30
31
+
32
+
### Environment Credentials
33
+
```python
34
+
from python_paypal_api.api import Identity
35
+
36
+
os.environ["client_id"] ="your-client-id"
37
+
os.environ["client_secret"] ="your-client-secret"
38
+
# os.environ["client_mode"] = "PRODUCTION"
39
+
40
+
# Can omit client_mode if using SANDBOX
41
+
42
+
result = Identity().get_userinfo()
43
+
44
+
```
45
+
46
+
31
47
### Code Credentials
32
48
You can use your credentials as follows passing it to the client as a dict. Please review the full [documentation](https://github.com/sponsors/denisneuf) to see all posibilities to include your credentials.
33
49
@@ -76,7 +92,7 @@ from python_paypal_api.api import Identity
76
92
# Leave empty will use the 'default' account
77
93
result = Identity().get_userinfo()
78
94
# will use germany account data
79
-
result = Identity(account="production").get_userinfo()
95
+
result = Identity(credentials="production").get_userinfo()
0 commit comments