{"id":42213740,"url":"https://github.com/prompt-cash/integration-examples","last_synced_at":"2026-01-27T01:08:11.803Z","repository":{"id":47250023,"uuid":"334511608","full_name":"prompt-cash/integration-examples","owner":"prompt-cash","description":"Examples of how to integrate our payment gateway into your web store.","archived":false,"fork":false,"pushed_at":"2021-09-06T20:56:28.000Z","size":157,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-02T12:13:43.370Z","etag":null,"topics":["bitcoin","bitcoincash","cryptocurrency","ecommerce","payment","payment-gateway","payment-processor"],"latest_commit_sha":null,"homepage":"https://prompt.cash/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prompt-cash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-30T21:07:50.000Z","updated_at":"2022-04-29T16:49:24.000Z","dependencies_parsed_at":"2022-09-04T18:11:36.919Z","dependency_job_id":null,"html_url":"https://github.com/prompt-cash/integration-examples","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/prompt-cash/integration-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prompt-cash%2Fintegration-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prompt-cash%2Fintegration-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prompt-cash%2Fintegration-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prompt-cash%2Fintegration-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prompt-cash","download_url":"https://codeload.github.com/prompt-cash/integration-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prompt-cash%2Fintegration-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28794710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T01:07:07.743Z","status":"ssl_error","status_checked_at":"2026-01-27T01:07:06.974Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bitcoin","bitcoincash","cryptocurrency","ecommerce","payment","payment-gateway","payment-processor"],"created_at":"2026-01-27T01:08:11.204Z","updated_at":"2026-01-27T01:08:11.781Z","avatar_url":"https://github.com/prompt-cash.png","language":"PHP","readme":"# Promt.cash integration examples\nThis repository contains code examples of how to integrate [Prompt.cash](https://prompt.cash) \nas a payment processor in your backend.\n\nSee our [API reference](https://prompt.cash/pub/docs/) for detailed descriptions\nof each parameter used in the following examples.\n\nAlso watch our [merchant introduction video](https://www.youtube.com/watch?v=8TIpZW1P_9M).\n\n## static page\nThis is the most minimalistic integration example into a [static HTML page](static).\nIt will generate a new address for every payment. You can then view a payment history including\n\"payment description/reference\" and used addresses in your account.\n\n#### Installation\nJust put the 2 HTML files on your webserver and customize the `input` values\nin the `form` tag.\n\n\n## Node.js\nSee the [nodejs](nodejs) folder.\n\nThis example can add server-side parameters (such as order ID) and \nadd a signature to each payment to prevent spoofing.\n\n#### Installation\nIn the `index.js` file, add the following:\n- your Account `PublicToken` and `SecretToken`\n- customize payment amount, currency and other parameters as needed\n```\nyarn install # npm works too\nyarn start\n```\n\n\n## PHP\nSee the [php](php) folder.\n\nThis example can add server-side parameters (such as order ID) and\nadd a signature to each payment to prevent spoofing.\n\n#### Installation\nIn the `config.php` file, add the following:\n- your Account `PublicToken` and `SecretToken`\n\nIn the `index.php` file, add the following:  \n- customize payment amount, currency and other parameters as needed\n\n\n## WordPress\nJust download our [WordPress plugin](https://wordpress.org/plugins/prompt-cash-monetize-your-blog-with-bitcoin-cash/).\n\nYou can install it directly within WordPress under Plugins -\u003e Add New\n\n\n## WHCMS\n[Payment plugin](https://github.com/prompt-cash/prompt-cash-whmcs) for web hosting\nproviders \u0026 resellers using WHCMS to manage their customer invoicing.\n\n\n## Android\nWe have an [Anrdoi App Demo](https://github.com/prompt-cash/androidDemo)\nthat shows you how to:\n- display a QR code\n- check for payment status\n\nYou can use this app as a template to accept Point of Sale (POS) payments.\n\n\n## SLP Tokens\nTo receive payments in your own SLP token, please [follow this guide](./SlpTokens.md).\n\n## Payment Control flow\n``` text \n     +-------------+                      +-------------+                      +-------------+\n     |             |                      |   Merchant  |                      | Prompt.Cash |\n     |   Customer  |                      |   Website   |                      | Payment     |\n     |             |                      |             |                      | Gateway     |\n     +-------------+                      +-------------+                      +-------------+\n            |                                     |                                   |\n            |--(1)--Payment Request--------------\u003e|                                   |\n            |                                     |                                   |\n            |\u003c--(2)--Generate Payment Form--------|                                   |\n            |                                     |                                   |\n            |---(3)--Click \"Pay\" \u0026 Go to Gateway-------------------------------------\u003e|\n            |                                     |                                   |\n            |                                     |\u003c---(4)--Payment Success Callback--|\n            |                                     |                                   |\n            |\u003c---------------------------------(5)--Send Customer back to Return URL--|\n            |                                     |                                   |\n            |                                     |                                   |\n```\n\n\n## Contact\n[Website](https://prompt.cash/) -\n[Twitter](https://twitter.com/CashPrompt) -\n[Telegram](https://t.me/PromptCash) -\n[YouTube](https://www.youtube.com/channel/UClfNVdL3T0RF6pF1yGi9teg)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprompt-cash%2Fintegration-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprompt-cash%2Fintegration-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprompt-cash%2Fintegration-examples/lists"}