{"id":24746673,"url":"https://github.com/samuelmarks/mastercard-python","last_synced_at":"2025-03-23T01:23:37.460Z","repository":{"id":26556167,"uuid":"30009937","full_name":"SamuelMarks/mastercard-python","owner":"SamuelMarks","description":"Python SDK for MasterCard's API. Unofficial.","archived":false,"fork":false,"pushed_at":"2015-02-06T14:55:45.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-28T04:32:02.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/SamuelMarks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-29T08:01:18.000Z","updated_at":"2015-02-06T14:55:45.000Z","dependencies_parsed_at":"2022-08-31T19:10:21.382Z","dependency_job_id":null,"html_url":"https://github.com/SamuelMarks/mastercard-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/SamuelMarks%2Fmastercard-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fmastercard-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fmastercard-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fmastercard-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamuelMarks","download_url":"https://codeload.github.com/SamuelMarks/mastercard-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245042147,"owners_count":20551525,"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":[],"created_at":"2025-01-28T04:30:09.691Z","updated_at":"2025-03-23T01:23:37.430Z","avatar_url":"https://github.com/SamuelMarks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"mastercard-python\n=================\n\nA wrapper of MasterCard's HTTPS APIs in Python.\n\nCurrently in pre-alpha, recommend awaiting the 1.0.0 release.\n\n#Setup\n\nYou'll need a few environment variables set, specifically:\n\n    MC_CLIENT_ID\n    MC_PRIVATE_KEY\n    MC_API_OR_SANDBOX\n\nExample value for `MC_API_OR_SANDBOX`:\n\n    sandbox.api\n\nAdditionally there is an optional variable:\n\n    MC_CERTIFICATE\n\n`MC_PRIVATE_KEY` can be a path to a '.jks' file, in such a case ensure you should include any password.\n\n#Use\n\n    # Instantiate 1-2 variables\n    mc_oauth = OAuth1(client_key=client_key, signature_method=SIGNATURE_RSA, rsa_key=private_key)\n    mc = master_card(mc_oauth)\n    \n    # Then call the API method you want\n    mc('merchant', 'merchants')\n\nThis `mc` object additionally supports an:\n\n  - `id` field (usually a numeral after the first two nouns).\n  - query params (as a arguments, e.g.: `mc('', '', PageLength=50)`), these will replace any defaults\n\nResults of the `mc` object currently include:\n\n  - `status_code`, the HTTP response status code\n  - `xml`, the resulting content\n  - `url`, the URL the request was sent to\n\nSee `MasterCard.py` for an example with pretty-printing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmarks%2Fmastercard-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuelmarks%2Fmastercard-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmarks%2Fmastercard-python/lists"}