bitpay.php¶
Bitpay service integration for managing cryptocurrency payments via Bitpay, including payment verification and invoice initialization.
API Methods¶
| Method | Action | Description |
|---|---|---|
check_payment | get check_payment status | Verifies the current status of a Bitpay payment and records it in the billing system if completed. |
init | initialize bitpay invoice | Initializes a Bitpay invoice for the specified client and redirects to the payment URL. |
bitpay/check_payment¶
Verifies the current status of a Bitpay payment and records it in the billing system if completed.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: check_payment |
| token | ✅ | string | Authentication token for API access. |
| id | ✅ | integer | The Bitpay payment ID to check. |
| invoice_id | ❌ | integer | The unique identifier of the invoice to be processed. |
| invoiceId | ❌ | string | Identifier for the specific invoice being checked. |
| source | ❌ | string | The origin of the request used to determine processing logic. |
Request example
Success response example
bitpay/init¶
Initializes a Bitpay invoice for the specified client and redirects to the payment URL.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: init |
| token | ✅ | string | Authentication token for API access. |
| data | ✅ | array<string> | Data object containing client information and invoice details. |
| url | ❌ | string | Redirect URL for the payment process. |
| invoice_id | ✅ | integer | The unique identifier of the WHMCS invoice to be processed. |
| invoiceId | ❌ | string | The identification number for the invoice. |
Request example