Loading...
Loading...
Docs / Plugin guide / Magento
The Magento 2 integration is a Composer-installed payment method that redirects shoppers to the Payvra hosted checkout and reconciles order state through signed webhooks. Use this page to prove the installation path, payment-state reconciliation, and the exact switches you flip when the store moves from sandbox to live.
Treat the extension like any other payment method: install it via Composer, confirm one full sandbox order lifecycle, and only then swap the API key and webhook secret to live values.
What this guide proves
Checkout redirect
Signed callback
Refund route
Operator facts
Runtime model
Checkout route
Store requirement
Live promotion
Checkout redirect
Signed callback
Refund route
Payvra. Distributed as a Composer package and Marketplace extension.
Listing facts
Install the extension via Composer
composer require payvra/magento2-gatewaybin/magento module:enable Payvra_Gatewaybin/magento setup:upgradebin/magento cache:flushVerify the module is registered
bin/magento module:status and confirm Payvra_Gateway appears in the enabled list. If it does not, check the Composer install output for dependency conflicts.Confirm the payment method appears in admin
Keep the first install in sandbox mode
Enable payment method
Sandbox mode
API key
sk_test_.... Replace it with sk_live_... only after the signed webhook path is stable and the Magento order transitions are correct.Webhook secret
Settlement currency
Copy the store callback URL
https://yourstore.com/rest/V1/payvra/webhookRegister the webhook in Payvra
payment.confirmed, payment.completed, payment.failed, payment.expired, refund.completed, and refund.failed.Verify the callback before order mutation logic runs
Full page cache + Varnish
/rest/V1/payvra/webhook. Add an explicit bypass rule to Varnish or any CDN in front of Magento so signed webhook deliveries are never served from cache.DI compile after install
composer require and module enable, run setup:di:compile on production-mode stores. Until DI is rebuilt the webhook controller is not autoloaded and Payvra delivery returns 404.REST ACL
etc/webapi.xml. If a custom ACL plugin tightens the REST surface, allowlist the Payvra route or callbacks fail with 401 even when the signature is valid.Async order grids
Payment method visibility
Lifecycle rehearsal
Order resolution
sk_test_... value with sk_live_... in the Magento admin configuration.whsec_... value into the module settings.Payment method does not appear at checkout
bin/magento module:status, the payment method is turned on in admin configuration, and the store is running over HTTPS. Also verify setup:upgrade and cache:flush have been run after installation.Orders stay pending after payment
system.log to see whether the callback URL, signing secret, or order mutation failed.Credit memo cannot find the Payvra payment
Module installs but checkout still fails
sk_test_... or a stale sandbox webhook secret after the operator believes the store has been promoted.Prove one sandbox order from checkout redirect to signed callback, then promote the same module to live mode by switching only the Payvra credentials and webhook secret.