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
|[BIN lookup API](https://docs.adyen.com/api-explorer/BinLookup/52/overview)| The BIN Lookup API provides endpoints for retrieving information based on a given BIN. | binLookup |**v52**|
13
14
|[Balance Platform API](https://docs.adyen.com/api-explorer/balanceplatform/2/overview)| The Balance Platform API enables you to create a platform where you can onboard your users as account holders and create balance accounts, cards, and business accounts. | balancePlatform |**v2**|
|[Management API](https://docs.adyen.com/api-explorer/Management/3/overview)| Configure and manage your Adyen company and merchant accounts, stores, and payment terminals. | management |**v3**|
@@ -25,37 +26,33 @@ This is the officially supported Python library for using Adyen's APIs.
25
26
26
27
For more information, refer to our [documentation](https://docs.adyen.com/) or the [API Explorer](https://docs.adyen.com/api-explorer/).
27
28
28
-
29
-
30
-
31
-
32
29
## Prerequisites
33
30
34
-
-[Adyen test account](https://docs.adyen.com/get-started-with-adyen)
35
-
-[API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). For testing, your API credential needs to have the [API PCI Payments role](https://docs.adyen.com/development-resources/api-credentials#roles).
31
+
-[Adyen test account](https://docs.adyen.com/get-started-with-adyen)
32
+
-[API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). For testing, your API credential needs to have the [API PCI Payments role](https://docs.adyen.com/development-resources/api-credentials#roles).
adyen.payment.client.platform ="test"# Environment to use the library in.
69
66
~~~~
67
+
70
68
### Consuming Services
69
+
71
70
Every API the library supports is represented by a service object. The name of the service matching the corresponding API is listed in the [Integrations](#supported-api-versions) section of this document.
71
+
72
72
#### Using all services
73
+
73
74
~~~~python
74
75
import Adyen
76
+
75
77
adyen = Adyen.Adyen()
76
78
adyen.payment.client.xapikey ="YourXapikey"
77
79
adyen.payment.client.platform ="test"# change to live for production
Adyen service exceptions extend the AdyenError class. After you catch this exception, you can access the
141
156
class arguments for the specifics around this error or use the debug method which prints all the arguments.
157
+
142
158
~~~~python
143
159
try:
144
-
adyen.checkout.payments(request)
145
-
except Adyen.exceptions.AdyenErorras error:
146
-
error.debug()
160
+
adyen.checkout.payments_api.payments(request)
161
+
except Adyen.exceptions.AdyenErroras error:
162
+
print(error.debug())
147
163
~~~~
164
+
148
165
<details><summary>List of exceptions</summary>
149
166
<p>AdyenInvalidRequestError</p>
150
167
<p>AdyenAPIResponseError</p>
@@ -162,27 +179,27 @@ except Adyen.exceptions.AdyenErorr as error:
162
179
For a closer look at how our Python library works, clone our [example integration](https://github.com/adyen-examples/adyen-python-online-payments). This includes commented code, highlighting key features and concepts, and examples of API calls that can be made using the library.
163
180
164
181
## Feedback
182
+
165
183
We value your input! Help us enhance our API Libraries and improve the integration experience by providing your feedback. Please take a moment to fill out [our feedback form](https://forms.gle/A4EERrR6CWgKWe5r9) to share your thoughts, suggestions or ideas.
166
184
167
185
## Contributing
168
186
169
187
We encourage you to contribute to this repository, so everyone can benefit from new features, bug fixes, and any other improvements.
170
188
171
-
172
189
Have a look at our [contributing guidelines](https://github.com/Adyen/adyen-python-api-library/blob/develop/CONTRIBUTING.md) to find out how to raise a pull request.
173
190
174
-
175
191
## Support
192
+
176
193
If you have a feature request, or spotted a bug or a technical problem, [create an issue here](https://github.com/Adyen/adyen-web/issues/new/choose).
177
194
178
195
For other questions, [contact our Support Team](https://www.adyen.help/hc/en-us/requests/new?ticket_form_id=360000705420).
179
196
180
-
181
197
## Licence
198
+
182
199
This repository is available under the [MIT license](https://github.com/Adyen/adyen-python-api-library/blob/main/LICENSE.md).
0 commit comments