{"library":"mollie-api-python","title":"Mollie API Client for Python","description":"Official Mollie API client for Python. Provides synchronous and asynchronous access to Mollie's payment, subscription, order, and other resources. Latest version 4.0.0 drops support for Python 3.8 and 3.9. Releases are ongoing, with several patches per year.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install mollie-api-python"],"cli":null},"imports":["from mollie.api.client import MollieClient","from mollie.api.resources.payment import Payment"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\nfrom mollie.api.client import MollieClient\n\nclient = MollieClient()\nclient.set_api_key(os.environ.get('MOLLIE_API_KEY', 'test_dHar4XY7LxsDOt2kVbK0GPLH4eLkgR'))\n\n# Create a payment\npayment = client.payments.create({\n    'amount': {'currency': 'EUR', 'value': '10.00'},\n    'description': 'Order #12345',\n    'redirectUrl': 'https://example.com/return',\n    'webhookUrl': 'https://example.com/webhook'\n})\n\nprint(f'Payment created: {payment.id}')","lang":"python","description":"Initialize client with API key and create a payment.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}