Download the PHP package quellabs/canvas-payments-adyen without Composer
On this page you can find all versions of the php package quellabs/canvas-payments-adyen. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download quellabs/canvas-payments-adyen
More information about quellabs/canvas-payments-adyen
Files in quellabs/canvas-payments-adyen
Package canvas-payments-adyen
Short Description Adyen payment gateway integration for the Canvas PHP framework
License MIT
Informations about the package canvas-payments-adyen
Adyen Payment Provider
An Adyen payment provider for the Canvas framework. Part of the Canvas payments ecosystem.
Installation
Architecture
This package sits between the Adyen API and your application. Your application only ever touches the contracts layer —
it never depends on this package directly. PaymentRouter (from quellabs/canvas-payments) discovers this package
automatically via composer metadata and routes payment calls to it.
Notification processing is decoupled from your application via signals. When Adyen sends a notification, the package
emits a payment_exchange signal carrying a PaymentState. Your application listens for that signal and handles it.
Configuration
Create config/adyen.php in your Canvas application:
| Key | Required | Description |
|---|---|---|
test_mode |
No | Enable Adyen test environment. Defaults to false |
api_key |
Yes | Your Adyen API key. Found in Customer Area under Developers → API credentials. Use a test credential when test_mode is true |
merchant_account |
Yes | The Adyen merchant account name (not the company account). Found next to the account switcher in Customer Area |
hmac_key |
Yes | HMAC key for verifying incoming webhook signatures. Generated per webhook under Developers → Webhooks → Edit webhook |
live_endpoint_prefix |
No | Required when test_mode is false. Found in Customer Area under Developers → API URLs. Format: <random>-<merchantAccount> |
return_url |
Yes | URL the customer is redirected to after the package handles the return |
cancel_return_url |
Yes | URL the customer is redirected to after the package handles the cancel |
webhook_url |
Yes | Full URL Adyen POSTs webhook notifications to. Must be publicly reachable. Configure under Developers → Webhooks |
default_country |
No | ISO 3166-1 alpha-2 country code used when calling getPaymentOptions() without a transaction context (e.g. 'NL') |
default_currency |
No | ISO 4217 currency code used when calling getPaymentOptions() without a transaction context (e.g. 'EUR') |
Usage
Initiating a payment
Inject PaymentInterface via Canvas DI and call initiate():
Handling refunds
Adyen refunds reference the pspReference from the original payment, which is exposed as transactionId on
PaymentState. No additional metadata needs to be persisted — the transactionId from your payment_exchange
listener is sufficient.
Note: Adyen processes refunds asynchronously. The refundId in the result is a pspReference for the refund
request itself. The final REFUND notification arrives separately and triggers a payment_exchange signal
with PaymentStatus::Refunded.
Listening for payment state changes
License
MIT
All versions of canvas-payments-adyen with dependencies
symfony/http-client Version ^7.0 || ^8.0
quellabs/support Version *
quellabs/contracts Version *
quellabs/canvas-payments-contracts Version *