{"id":18895637,"url":"https://github.com/binance/binance-pay-connector-python","last_synced_at":"2025-04-15T01:14:10.995Z","repository":{"id":37206282,"uuid":"419204409","full_name":"binance/binance-pay-connector-python","owner":"binance","description":"A lightweight library that works as a connector to Binance pay public API","archived":false,"fork":false,"pushed_at":"2023-06-23T21:22:24.000Z","size":21,"stargazers_count":24,"open_issues_count":2,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-15T01:14:04.337Z","etag":null,"topics":["binance","binance-api","binance-pay","connector","library","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binance.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-20T06:02:37.000Z","updated_at":"2025-02-22T19:15:22.000Z","dependencies_parsed_at":"2024-11-08T08:30:36.027Z","dependency_job_id":"439cd1a4-f9f0-44a0-b4e6-0b1aa4b85c15","html_url":"https://github.com/binance/binance-pay-connector-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binance%2Fbinance-pay-connector-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binance%2Fbinance-pay-connector-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binance%2Fbinance-pay-connector-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binance%2Fbinance-pay-connector-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binance","download_url":"https://codeload.github.com/binance/binance-pay-connector-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986315,"owners_count":21194025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binance","binance-api","binance-pay","connector","library","python"],"created_at":"2024-11-08T08:29:11.418Z","updated_at":"2025-04-15T01:14:10.978Z","avatar_url":"https://github.com/binance.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Binance Pay Public API Connector Python\n[![Python 3.6](https://img.shields.io/badge/python-3.6+-blue.svg)](https://www.python.org/downloads/release/python-360/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nThis is a lightweight library that works as a connector to [Binance Pay public API](https://developers.binance.com/docs/binance-pay/introduction)\n\n## Installation\n\n```bash\npip install binance-pay-connector\n```\n\n## Documentation\n\n[https://binance-pay-connector-python.readthedocs.io](https://binance-pay-connector-python.readthedocs.io)\n\n## RESTful APIs\n\nUsage examples:\n```python\nfrom binance.pay.merchant import Merchant as Client\n\n\n# Setup merchant API from https://merchant.binance.com/en/dashboard/developers\n\nclient = Client(key='\u003capi_key\u003e', secret='\u003capi_secret\u003e')\nresponse = client.get_order(merchantTradeNo=\"\u003ctrade_no\u003e\")\n\n# Get an order details\nprint(response)\n\n```\nPlease find [examples](https://github.com/binance/binance-pay-connector-python/tree/master/examples/pay/merchant) folder to check for more endpoints.\n\n### Optional parameters\n\nPEP8 suggests _lowercase with words separated by underscores_, but for this connector,\nthe methods' optional parameters should follow their exact naming as in the API documentation.\n\n```python\n# Recognised parameter name\nresponse = client.get_order(merchantTradeNo=\"2223\")\n\n# Unrecognised parameter name\nresponse = client.get_order(merchant_trade_no=\"2223\")\n```\n\n### Display logs\n\nSetting the log level to `DEBUG` will log the request URL, payload and response text.\n\n### Error\n\nIf a request has a parameter that is not provided but required from server, this library will throw an exception `binance.pay.error.ParameterRequiredError`, except the endpoint that is for creating order.  `POST /binancepay/openapi/v2/order` that used to create order has complicate parameter strucuture, the library doesn't any mandatory parameter. Please see the example file for how to place an order.\n\n## Test Case\n\n```python\n# In case packages are not installed yet\npip install -r requirements/requirements-test.txt\n\npytest\n```\n\n\n## Contributing\n\nContributions are welcome.\u003cbr/\u003e\nIf you've found a bug within this project, please open an issue to discuss what you would like to change.\u003cbr/\u003e\nIf it's an issue with the API, please open a topic at [Binance Developer Community](https://dev.binance.vision)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinance%2Fbinance-pay-connector-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinance%2Fbinance-pay-connector-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinance%2Fbinance-pay-connector-python/lists"}