Skip to content

Commit ac7a755

Browse files
authored
FIX: be more explicit about api keys scope in instantiation
1 parent 0eea9b0 commit ac7a755

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ This library offers two ways to initialize and use the Adyen API services.
6161

6262
#### Using all services
6363

64-
For simple scripts or applications that only use a single set of API credentials, you can use the main `Adyen` object. This creates a convenient "facade" that loads and provides easy access to all available APIs.
64+
For simple scripts or applications that only use a single set of API credentials, you can use the main `Adyen` object. This creates a convenient "facade" that loads and provides easy access to all available APIs. Keep in mind that different API keys will have different scopes so you may still need need more than one instance.
6565

6666
~~~~python
6767
import Adyen
@@ -118,6 +118,14 @@ payment_result = checkout_service.payments_api.payments(request)
118118
order_result = checkout_service.orders_api.orders(request)
119119
~~~~
120120

121+
Similarly you can instantiate a separate client for services that required different API keys
122+
123+
~~~~python
124+
adyen_lem_client = AdyenClient()
125+
adyen_lem_client.xapikey = "YourLEMXapikey"
126+
adyen_lem_client.platform = "test"
127+
~~~~
128+
121129
#### Force HTTP library
122130

123131
~~~~python

0 commit comments

Comments
 (0)