
For many eCommerce stores, the hardest part of checkout isn’t cart building; it’s taking payment securely while offering customers their preferred methods. The Magento 2 COPYandPAY Integration solves this with a hosted, embeddable payment widget that keeps sensitive card data off your server, achieves PCI SAQ-A scope, and supports a broad range of international and regional brands.
This developer-ready guide explains how the extension provides a faster path to a “Paid” order with less compliance overhead, all while supporting methods like Visa, Mastercard, Ecocash, OneWallet, and Zimswitch, and processing transactions in currencies such as USD and ZWG.
What is COPYandPAY and How Does It Work?
COPYandPAY is a hosted payment form embedded in your Magento checkout via a lightweight JavaScript snippet. The workflow is deliberately simple and secure:
- Prepare the checkout: First, your server posts order details (like amount and currency) to the payment API and receives a unique
checkoutId. - Render the payment form: Next, your storefront uses this
checkoutIdto display one or more payment forms to the shopper. - Get payment status: Finally, after the shopper submits their payment, they return to a result URL. Your server then retrieves the final status from the payment API to complete the order.
Key Benefits for Magento Teams
- Expanded Market Reach: Natively accept payments from a wide range of providers, from international cards to essential regional services, and process orders in multiple currencies like USD and ZWG.
- Lower PCI Scope: Because the hosted widget captures all sensitive card data, it never touches your Magento server. This simplifies your compliance audits to SAQ-A standards.
- Faster Go-Live: Implementation is quick with minimal frontend work. Simply drop in a script and a few form tags to get started.
- Reliable User Experience: The hosted widget expertly handles different brand flows and 3-D Secure challenges, ensuring a smooth journey for your customers.
Module Overview: Admin Configuration
The Magento 2 COPYandPAY Integration adds a new payment method with straightforward configuration:
- Enable/Disable and Title: Easily show or hide the payment method and set its title at checkout.
- Mode: Switch between Sandbox and Production environments for safe testing and a controlled go-live.
- Credentials: Securely store your provider-required Entity ID and Access Token.
- Brands: Enter a space-separated list of payment methods to display, for example:
VISA MASTERCARD ECOCASH ONEWALLET ZIMSWITCH. - Test Modes: Choose between “External” for end-to-end testing or “Internal” simulator mode for quick, local flow validation.
- Debug: Enable this to log all requests and responses, which is incredibly useful for troubleshooting.
- Auto-cancellation: A cron-driven job automatically cancels pending orders after a set time to keep your order queue clean.
The Frontend Flow: What Shoppers See
- At checkout, the buyer selects your newly titled payment method (e.g., “Pay Securely Online”).
- On the next step, Magento generates a
checkoutIdand renders the hosted widget. - The widget displays the configured payment brands, including familiar options like Visa, Ecocash, or Zimswitch.
- The shopper enters their details into the secure widget, completes any required 3-D Secure challenges, and submits the payment.
- After a successful transaction, the order moves to
Processingwith a recorded transaction ID.
Technical Walkthrough: COPYandPAY in Magento 2
The integration follows a clear, three-step technical process:
- Prepare the Checkout (Server-to-Server): Magento posts order parameters to the provider and receives a short-lived
checkoutIdtoken. - Render the Payment Widget (Storefront): You include the provider’s widget script along with one or more form tags that use the
checkoutIdand list the supported brands. - Get Payment Status (Server-to-Server): After submission, the shopper lands on a result URL with a
resourcePathparameter. Your server makes an authenticated GET request to this path to retrieve the final status, making sure to verify the amount, currency, and result code.
Security and Compliance in Practice
- PCI SAQ-A Alignment: Card data is collected by the hosted form, not Magento, significantly reducing your compliance burden.
- 3-D Secure 2 Ready: Risk-based authentication and challenge windows are handled entirely by the provider.
- Robust Logging: The debug mode provides a clear audit trail for requests and responses, while automatically masking sensitive data to ensure security.
Conclusion: Faster, Safer Payments for Any Audience
The Magento 2 COPYandPAY Integration provides a clean balance of speed, security, and control. Its PCI SAQ-A model reduces compliance effort, while the widget handles brand rendering and 3-D Secure. With support for diverse payment methods and currencies, the module’s sandbox modes, simulator option, and debug logs make testing and operations straightforward. For stores that want reliable payments for any audience without reinventing their checkout, this extension is a smart, comprehensive choice.


