Skip to content

Commit 825d789

Browse files
committed
v0.0.5
1 parent c427424 commit 825d789

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,22 @@ If you find this project is useful consider donating or [sponsor](https://github
2828

2929
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)
3030

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+
3147
### Code Credentials
3248
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.
3349

@@ -76,7 +92,7 @@ from python_paypal_api.api import Identity
7692
# Leave empty will use the 'default' account
7793
result = Identity().get_userinfo()
7894
# will use germany account data
79-
result = Identity(account="production").get_userinfo()
95+
result = Identity(credentials="production").get_userinfo()
8096
```
8197

8298

0 commit comments

Comments
 (0)