No results found

Try a different search query

Popular searches:

Add to Cart

Cart

You have no purchases yet

Browse Marketplace
Original Subtotal:
Product discounts:
Quantity Discount:
Total:
View Cart

Card Payment in OpenCart: Review of the «Wayforpay API payment for Opencart» Module

We review the Wayforpay module for OpenCart: fund hold, in-widget payment without redirect, invoices, prepayment, transactions and refunds right from the admin panel.

6 min read
85
0
Card Payment in OpenCart: Review of the «Wayforpay API payment for Opencart» Module

The customer placed the order, clicked "Pay" and got stuck on a third-party page, where they have to enter their phone number again and look for the right button. Some people simply close the tab at this step. The second typical pain point: the payment goes through, but the manager sees it only in the payment provider's dashboard, because OpenCart's admin knows nothing about the transaction.

The "Wayforpay API payment for Opencart" module by bogdan281989 connects Wayforpay acquiring to a store on OpenCart, ocStore or OpencartPro and moves the main payment work into the admin: fund holds, invoices, transaction list, refunds. Below we go through all the settings screens.

If you are still choosing between payment providers, start with the general overview how to connect card payment in OpenCart: there LiqPay, MonoPay, NovaPay and Wayforpay are compared with each other. Here we focus in detail on the Wayforpay module.

General settings: keys, operating mode and hold

The first tab is responsible for the connection. You take the Merchant Account and secret key from your Wayforpay personal account. Then there are three decisions that determine the entire payment behavior: test or live mode, how the money is charged, and where the customer enters the card.

General tab of the Wayforpay API module: Merchant Account, secret key, operating mode and charge mode
The "General" tab. The Merchant Account and secret key values are blurred.
  1. Merchant Account. The store identifier from the Wayforpay account.
  2. Secret key. The merchantSecretKey from the same account. It is used to sign requests to the payment system, so never share it with anyone.
  3. Operating mode. Test mode lets you check the entire payment flow without real charges. Switch to live mode only after a test order.
  4. Charge mode. Regular charge or hold: the bank freezes the money on the customer's account until you confirm the payment. Convenient when product availability still needs to be checked.
  5. Payment mode in the cart. Redirect to the Wayforpay page or payment in an embedded widget without leaving the website.
  6. Minimum order amount. Below this sum the payment method is not shown.
  7. Logging. Enables logging of payment system responses. It is better to keep it enabled at the start.

Region, status and sort order are standard for any payment method in OpenCart.

Here is what payment in the widget looks like: the form opens over the checkout page, the customer enters the card and does not leave the store.

Wayforpay payment widget over the order checkout page in OpenCart
Payment in the widget on the storefront, test merchant. The customer's phone is blurred.

Order statuses

Here you decide what happens to an order at each stage of payment. Each event has its own status, so the manager immediately sees in the order list what is paid, what is on hold, and what has been refunded.

Statuses tab of the Wayforpay module: order status for moving to payment, successful and failed payment, hold
The "Statuses" tab.
  1. Status change when moving to payment. Whether to change the status at the moment the customer goes to pay.
  2. Status after checkout. The status of an order that has been created but not yet paid.
  3. Successful payment. The status the order receives after Wayforpay confirms the payment.
  4. Failed payment. A separate status for declined payments, so they can be easily filtered and the customer can be called back.
  5. After accepting from hold. The status set when the manager has confirmed the frozen payment.

Statuses for checking a payment and for refunds are configured separately.

Additional: language, currency and name in the cart

Additional tab of the Wayforpay module: payment page language, currency, forced redirect to payment, module name in the cart
The "Additional" tab.
  1. Payment page language. Automatic or a fixed language of the payment form.
  2. Currency. The currency in which the invoice is passed to Wayforpay.
  3. Force redirect to payment. Forced redirect of the customer to payment after the order is placed. Disabled in the screenshot.
  4. Module name in the cart. How the payment method is labeled on the checkout page, separately for each store language.

Fiscalization

If you issue receipts through Wayforpay, here you set how delivery will appear on the receipt.

Fiscalization tab of the Wayforpay module: fiscalization language, delivery on the receipt, delivery item name
The "Fiscalization" tab.
  1. Fiscalization language. The language in which receipt items are generated.
  2. Delivery on the receipt. Whether to add the delivery cost as a separate item.
  3. Delivery item name. The text of this item for each language.

Prepayment as a separate payment method

The package includes an additional payment method "WayForPay prepayment". It works only together with the main module and covers a familiar scenario: the customer pays a fixed amount by card, and the rest on delivery. For stores tired of uncollected parcels, this is perhaps the most useful part.

Settings of the WayForPay prepayment payment method in the OpenCart admin
Prepayment settings.
  1. Minimum order amount. The order sum from which prepayment is shown.
  2. Status after prepayment. A separate status so such orders are not confused with fully paid ones.
  3. Amount calculation type. The screenshot shows a fixed amount selected.
  4. Prepayment amount. How much the customer pays by card during checkout.
  5. Payment method name. The label in the cart for each language.

An invoice can be generated manually or automatically from order data. This helps when an order came in by phone, the customer changed their mind and wants to pay by card, or you need to collect a prepayment for an already created order.

Wayforpay invoice generation window for an order in the OpenCart admin
Generating an invoice from an order. The invoice link and customer details are blurred.
  1. Invoice link. After generation, the module shows a payment link that can be copied with one button.
  2. Notification channel. The channels through which Wayforpay will send the invoice to the customer.
  3. Products. Items are pulled from the order; the name, description, quantity and price can be changed.
  4. Add line. An additional item in the invoice, for example a delivery surcharge.
  5. Send. Creates the invoice in Wayforpay.

Transactions, hold and refunds from the admin

For each order you can open transaction details: status, amount, bank, creation and closing dates. From here the manager also accepts a payment from hold or refunds money without logging into the Wayforpay account.

Wayforpay transaction details in an OpenCart order with buttons to accept payment and refund money
Order transaction details. The payment ID, customer's phone and e-mail are blurred.
  1. Payment status. The current state of the transaction in Wayforpay.
  2. Charge amount. How much to charge from the hold. The screenshot shows the full order amount.
  3. Accept payment and Refund money. Confirming the hold or refunding the customer directly from the admin.

In addition to the details of an individual order, the module has a full list of transactions.

Logs

The "Logs" tab shows callbacks from Wayforpay: the start and end of processing, the request itself, redirects to the success page. When a payment has gone through but the order status has not changed, the first thing to do is look here. The remaining diagnostic steps are collected in the article payment went through but the order status did not change.

Logs tab of the Wayforpay module with payment system callbacks
The "Logs" tab. Signatures, order IDs and authorization codes are blurred.
  1. Logs tab. A journal of payment system responses with the date and time of each request.
  2. Clear. Resets the journal once diagnostics are complete.

Things to consider before buying

  • Works on OpenCart 2.0.3, 2.1.0, 2.3.0, 3.0.x and 4.1.0, as well as on ocStore and OpencartPro. Requires PHP 5.6 or newer.
  • Requires ionCube Loader: one admin file is encoded, all other files are open for editing.
  • The module contacts the developer's server, but if it is unavailable, payment continues to work.
  • License for one domain plus one test subdomain. Reissuing to another domain is not provided, so specify the correct domain at purchase.
  • A valid Wayforpay merchant account is required: the connection keys are taken from its dashboard.
  • The developer claims full compatibility with OCTemplates themes and the Smart Checkout module. For other non-standard checkout designs, check the widget's operation on the test subdomain.
  • The screenshots show module version 2.1.0, while the current version on the marketplace is 2.1.3, so interface details may differ slightly.

Who it is for

Stores that already work with Wayforpay or have chosen it and want to manage payments from the admin: holds for made-to-order goods, invoices for phone sales, prepayment against uncollected parcels, refunds without the payment provider's dashboard. It suits stores with managers who process orders manually every day.

If your acquiring is with another bank and you do not plan to switch, this module is not for you. It is also excessive when a simple "pay by card" button without holds, invoices and transaction handling is enough.

"Wayforpay API payment for Opencart" by bogdan281989 on the OpenCart Code marketplace. Questions about setup can be asked to the developer directly on the module page.

Go to the module

Recommended Products

Wayforpay API payment for Opencart

Wayforpay API module for Opencart 2.1–3.x quickly connects online payments to your store. Provides advanced payment settings, fund holding, invoice creation in the admin panel, and transaction viewing. A secure and convenient tool for automating payments.

5
sales
812 ₴
OCTemplates

OCTemplates

OCTemplates — команда розробників та дизайнерів з України з досвідом у веброзробці з 2002 року. З 2015 року спеціалізуються на шаблонах та модулях для OpenCart: швидких, SEO-оптимізованих і готових до роботи в реальних умовах e-commerce. Продукти OCTemplates використовують тисячі інтернет-магазинів у Європі, Азії, Північній Америці та Австралії. Кожен покупець отримує не лише готове рішення, а й технічну підтримку та консультації з налаштування магазину.

articles
37
views
31,646
likes
26
follower
1
Related Posts
Comments (0)
Replying to

Please log in to leave a comment

Log In

No comments yet

Be the first to comment on this article!

We use cookies

We use cookies and similar technologies to improve your experience, analyse traffic, and show personalised ads. Read our Cookie Policy for details.