Download the PHP package coinify/magento2-payment without Composer

On this page you can find all versions of the php package coinify/magento2-payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package magento2-payment

Coinify Payment Gateway for Magento 2

Accept cryptocurrency payments in your Magento 2 store via Coinify.

Requirements

For local development (setting up Magento from scratch):

Installation

Note: The -d memory_limit=512M flag prevents setup:di:compile from failing on servers with a low default PHP memory limit. The -f flag on setup:static-content:deploy is required when Magento is running in production mode.

Configuration

Navigate to Stores → Configuration → Payment Methods → Coinify.

Field Description
Enabled Enable/disable the payment method
Payment Method Title Label shown to customers at checkout
Environment sandbox for testing, production for live payments
API Key Your Coinify API key
Webhook Secret Shared secret for webhook signature validation — required
Auto-create Credit Memo on Refund Automatically create an offline Credit Memo when Coinify confirms a refund

Important: The Webhook Secret must be set before accepting payments. Without it, all incoming webhooks will be rejected and order statuses will not update. A warning banner is displayed in the Magento admin until the secret is configured.

Webhook Setup

  1. Copy the Webhook URL shown in the Coinify configuration page (e.g. https://your-store.com/coinify/webhook/notify)
  2. Paste it into your Coinify dashboard under Webhook settings
  3. Copy the generated webhook secret from the Coinify dashboard back into the Webhook Secret field in Magento and save

Sandbox Testing

  1. Set Environment to sandbox in configuration
  2. Use your Coinify sandbox API key from app.sandbox.coinify.com
  3. Set the webhook URL and secret in the sandbox dashboard under Settings → Webhooks
  4. Place a test order and complete payment in the Coinify sandbox window
  5. Order status will update to Processing and an invoice will be created automatically once the webhook is received

Refunds

Initiate refunds from the order view in Magento admin under the Coinify Payments section. Coinify will email the customer to collect their wallet address. Once the crypto transfer completes, Coinify sends a payment-intent.refund.completed webhook which updates the refund status and (if enabled) automatically creates a Credit Memo.

Development

To work on this module locally, you need a running Magento 2.4.x instance. The recommended approach is to install the module via a Composer path repository so edits are reflected immediately without copying files.

In your Magento root composer.json, add:

Then install:

After any PHP file changes, re-run setup:di:compile and cache:flush. For template-only changes, cache:flush is sufficient.

Testing

The plugin ships with a standalone unit test suite that runs without a Magento installation. Tests cover all security-critical paths and core business logic.

Running tests locally

What is tested

Test file What it covers
Test/Unit/Model/ConfigTest decryptValue() logic for empty / plaintext / Magento-encrypted values; all config getters
Test/Unit/Model/Api/ClientTest Sandbox vs production URL selection; X-API-KEY header presence/absence; GET vs POST dispatch
Test/Unit/Observer/CheckWebhookSecretTest Admin warning shown when secret is missing; not shown when set or plugin inactive; AJAX requests skipped
Test/Unit/Controller/Webhook/NotifyTest HTTP 400 when webhook_secret not configured; HTTP 400 on invalid HMAC signature; HTTP 400 on intent/order ID mismatch (IDOR guard); HTTP 200 for a valid webhook
Test/Unit/Controller/Checkout/RedirectTest URL allowlist accepts valid production and sandbox domains; rejects evil subdomain spoofing and plain HTTP; redirects to cart when no order in session
Test/Unit/Model/Service/RefundProcessorTest Refund record saved with state initiated; correct refund ID extracted from merchantRefunds; no record saved when API returns no refunds
Test/Unit/Model/Service/CreditMemoProcessorTest Full refund path (includes shipping amount); partial refund path (uses adjustment_positive); early return when canCreditmemo() is false

CI

Tests run automatically on every push and pull request to main via GitHub Actions (.github/workflows/ci.yml), tested against PHP 8.2 and 8.3.

The CI workflow installs only PHPUnit (via composer-dev.json) — it does not require Magento or any Magento credentials.

License

MIT


All versions of magento2-payment with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
magento/framework Version >=103.0
magento/module-sales Version >=103.0
magento/module-payment Version >=100.3
magento/module-store Version >=101.0
magento/module-checkout Version >=100.3
magento/module-config Version >=101.0
magento/module-ui Version >=101.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package coinify/magento2-payment contains the following files

Loading the files please wait ...