Download the PHP package makepay/makepay-php without Composer
On this page you can find all versions of the php package makepay/makepay-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download makepay/makepay-php
More information about makepay/makepay-php
Files in makepay/makepay-php
Package makepay-php
Short Description Official MakePay PHP SDK for payment links, settings, and webhook verification.
License MIT
Homepage https://www.makecrypto.io/documentation/sdk/php
Informations about the package makepay-php
MakePay PHP SDK
Official Composer SDK for MakePay server-side integrations. Use it to create crypto payment links, donation pages, anonymous public links, customer portals, subscriptions, POS terminals, products, Simple Shop storefronts, invoices, bookkeeping records, branded domains, operational settings, and signed webhook handlers from PHP backends.
- Package:
makepay/makepay-php - Packagist:
https://packagist.org/packages/makepay/makepay-php - Source:
https://github.com/makecryptoio/makepay-php-sdk
Install
The SDK supports PHP 7.4 or newer and requires ext-json. ext-curl is used
when available; otherwise JSON requests fall back to PHP streams.
Configure
Create a MakePay API key in MakeCrypto and keep the secret on your server only.
The client sends X-MakeCrypto-Key-Id and X-MakeCrypto-Key-Secret headers to
the MakePay partner API. You can pass baseUrl for a non-production MakeCrypto
API origin, and checkoutBaseUrl for a custom MakePay checkout origin.
Payment Links
Read, update, and email existing links:
Donations
Anonymous Payment Links
Anonymous links do not use a MakePay API key. They require an explicit settlement route because MakePay cannot read merchant wallet settings.
Checkout URLs And Embeds
Donation pages have URL helpers too:
Customers And Subscriptions
POS, Products, And Simple Shop
Invoices And Bookkeeping
Expenses can be created manually or from wallet activity:
Document uploads accept a local path string or CURLFile:
Branding And Operational APIs
Webhook Verification
Read the exact raw request body before parsing JSON.
Use Webhook::verify() when you only need a boolean result.
Method Coverage
| Area | SDK methods |
|---|---|
| Payment links | createPaymentLink, listPaymentLinks, getPaymentLink, updatePaymentLink, sendPaymentRequestEmail |
| Donations | createDonationLink, listDonationLinks, getDonationLink, updateDonationLink |
| Anonymous links | Client::createAnonymousPaymentLink |
| Checkout | hosted, embedded, modal, button, iframe, and donation URL helpers |
| Customers | listCustomers, upsertCustomer, createCustomerPortal |
| Subscriptions | listSubscriptions, createSubscription |
| POS terminals | listPosTerminals, createPosTerminal, getPosTerminal, updatePosTerminal |
| Products | listProducts, createProduct, getProduct, updateProduct, listProductDownloads, createProductDownload |
| Simple Shop | getShop, updateShop, getShopBuilder, updateShopBuilder, getShopDomain, updateShopDomain, refreshShopDomain, coupon and order methods |
| Bookkeeping | summary, invoice, expense, document upload/OCR, and reconciliation methods |
| Branding | getBranding, updateBranding, refreshBrandingDomains |
| Operations | getSettings, updateSettings, listDestinationAssets, listWebhookRequests |
| Webhooks | Webhook::verify, Webhook::parse, plus client proxy methods |
Data And Errors
Payload arrays use the same camelCase field names as the MakePay API and npm
SDK. Use strings for decimal money values when precision matters, and ISO date
strings for date fields such as issueDate.
API errors throw MakePay\MakePayException with the HTTP status code and
decoded response body.
All versions of makepay-php with dependencies
ext-json Version *