{"id":29561132,"url":"https://github.com/karamble/decred-woocommerce-plugin","last_synced_at":"2025-09-11T21:50:40.912Z","repository":{"id":190726659,"uuid":"641342837","full_name":"karamble/decred-woocommerce-plugin","owner":"karamble","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-16T09:25:42.000Z","size":173,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-18T18:30:44.063Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karamble.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}},"created_at":"2023-05-16T09:20:03.000Z","updated_at":"2023-05-16T09:25:46.000Z","dependencies_parsed_at":"2023-08-26T04:35:43.093Z","dependency_job_id":null,"html_url":"https://github.com/karamble/decred-woocommerce-plugin","commit_stats":null,"previous_names":["karamble/decred-woocommerce-plugin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/karamble/decred-woocommerce-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karamble%2Fdecred-woocommerce-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karamble%2Fdecred-woocommerce-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karamble%2Fdecred-woocommerce-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karamble%2Fdecred-woocommerce-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karamble","download_url":"https://codeload.github.com/karamble/decred-woocommerce-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karamble%2Fdecred-woocommerce-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267327534,"owners_count":24069442,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-07-18T15:40:09.011Z","updated_at":"2025-07-27T08:04:22.331Z","avatar_url":"https://github.com/karamble.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"decred woocommerce payment plugin\n====\n\n[![ISC License](https://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)\n\n\nThis is a plugin for accepting payments via Decred on-chain transactions via a WooCommerce-branded payment gateway.\n\n## Dependencies\n\n-   WooCommerce\n-  [decred-php-api](https://github.com/decred/decred-php-api/) (dependency install via composer)\n\n### Install dependencies\n\n-   `composer install`\n\n## Setup\n\nInstall the following plugins:\n\n-   WooCommerce\n\n### General Concepts/Setup\n\nThe best way to begin is to see the [CLI Installation guide](https://docs.decred.org/wallets/cli/cli-installation/)\nguide and follow the \"Command-Line Path\" so you have dcrd/dcrwallet running locally on testnet and mainnet.\nFrom there you will be able to create accounts and be able to test receiving payments:\n\nCreate a new Decred wallet to receive payments trough your WooCommerce webshop. In order to protect your funds\nyou will need your XPUB key and enter it in the settings section of this plugin in your Wordpress admin console.\nThis way your webshop will not need to be operating with a hot wallet and the webserver can not access your funds.\n\nYou can user the following cli command to create a `dcrpayments` account in your wallet and export your XPUB key:\n```\n$ dcrctl --wallet createnewaccount dcrpayments\n$ dcrctl --wallet getmasterpubkey dcrpayments\n```\nYou should see a long string starting with **tpub** for textnet or **xpub** for mainnet\n which represents the master public key for this account returned as output. \nThis is used by the decred payments plugin for woocommerce to deterministically derive payment addresses from the\naccount.  This lets the software use i.e. address #1 for order #1, address #2\nfor order #2, and so on to prevent customers or competitors from seeing how many\norders have been placed and the amount(s) the wallet has received.  If the\nmaster public key is ever obtained by a third party, they will **not** be able\nto spend your funds, however they will be able to see the addresses/balance of\nthis account.  For this reason, it is best to have the \"real\" wallet which\ncontains private keys separated from the actual payment infrastructure.\n\nOne quirk is that the wallet under normal operation for personal activity will\nuse a [gap](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki)\nbetween addresses.  Gaps are not desired for e-commerce at this time so we can\nsimply tell the wallet to watch the first 10,000 addresses.\n\n```bash no-highlight\ndcrctl --wallet accountsyncaddressindex dcrpayments 0 10000\n```\n\nThis step will need to be performed again if the wallet is ever restored from\n[seed](https://docs.decred.org/faq/wallets-and-seeds/).  At this point, you\nshould be able to accept up to 10,000 orders and can simply extend the address\nindex if you surpass 10,000 orders.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaramble%2Fdecred-woocommerce-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaramble%2Fdecred-woocommerce-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaramble%2Fdecred-woocommerce-plugin/lists"}