Search by

payfurl / module-payment

alex-at-payfurl

payFURL payments for Magento 2 / Adobe Commerce

Package info

github.com/payfurl/magento2

Type:magento2-module

pkg:composer/payfurl/module-payment

Statistics

Installs: 140

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

2.1.6 2026-11-24 05:44 UTC

This package is auto-updated.

Last update: 2026-11-24 05:44:31 UTC


README

Accept payments on Magento Open Source and Adobe Commerce through payFURL: cards (with saved cards), PayPal, Google Pay, Apple Pay, PayTo and checkout methods such as PayID, routed to the gateways set up in your payFURL account.

The package is payfurl/module-payment; the Magento module is Payfurl_Payment. What changed in each version is in CHANGELOG.md.

Supported versions

Module Magento / Adobe Commerce PHP
2.x 2.4.7, 2.4.8, 2.4.9 8.2 to 8.5, as your Magento version allows (2.4.7: 8.2, 8.3; 2.4.8: 8.3, 8.4; 2.4.9: 8.3 to 8.5)
1.x 2.4.6 and earlier No longer updated

Install

Install on a development or staging copy of your store first, and back up the store before installing on production (bin/magento setup:backup --code --media --db, or your host's backup).

bin/magento maintenance:enable
composer require payfurl/module-payment:^2.0
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush
bin/magento maintenance:disable

Composer installs the module from Packagist and the payFURL PHP SDK it needs (payfurl/phpsdk 3.x; a later 3.x release installs with composer update payfurl/phpsdk). If Composer asks for repo.magento.com credentials, use your Commerce Marketplace access keys: at marketplace.magento.com, My Profile > Marketplace > Access Keys. The public key is the username and the private key the password.

My Profile > Marketplace Access Keys

Upgrade

composer update payfurl/module-payment
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush

From 1.x to 2.0: update Magento to 2.4.7 or later first; 2.0 doesn't install on older versions. Then composer require payfurl/module-payment:^2.0 and the commands above. After upgrading, set up the webhook (see Webhooks) so payments that settle later complete their orders. If your own code used methods the 1.x module added to Magento's payment order adapter, see the 2.0.0 entry in the changelog. If your theme overrides the module's checkout files (Payfurl_Payment templates or JavaScript), they keep working, but 2.0's checkout fixes apply only to the module's own files: remove the overrides you no longer need.

Configure

Stores > Configuration > Sales > Payment Methods > PayFURL Payment (under recommended solutions):

PayFURL configuration

Setting What it does
Enabled Shows the payFURL payment methods at checkout.
Environment Sandbox for testing with your payFURL sandbox account, Production for real payments.
Title The card payment method's name at checkout.
Sandbox Public key, Sandbox Secret key Your payFURL sandbox account's keys, used in the Sandbox environment.
Public key, Secret key Your payFURL production account's keys, used in the Production environment.
Enable GooglePay, Enable ApplePay Offer Google Pay and Apple Pay, when your payFURL account has a gateway for them.
Debug Logs every request to payFURL and its response in var/log/payfurl.log, with the shopper's personal and card details masked.
Webhook signing key The Webhook Secret Key from Account Info in the payFURL portal. See Webhooks.
Validate Credentials Checks the saved keys of the selected environment with payFURL. Press Save Config before validating.

Keys can be set per website, so each website can use its own payFURL account. Refunds use the keys of the order's store.

Which payment methods appear

The checkout asks payFURL which payment types your account can take for the cart's currency and total, and shows only those:

Method Shows when
Card Your account has a card gateway. Logged-in customers can save a card and pay with it next time.
PayPal Your account has a PayPal gateway.
Google Pay Enable GooglePay is on and your account has a Google Pay gateway.
Apple Pay Enable ApplePay is on, Apple Pay is set up in payFURL for your domain (see Apple Pay), and the shopper uses an Apple device.
PayTo Your account has a PayTo gateway.
PayID, Shift, Pay By Account, UPI Your account has that checkout provider. Other checkout providers (for example Pesapal, PayGLocal or Zip) are not offered by this module.

If a method doesn't show, check the account's gateways and their currencies in the payFURL portal.

How payments are checked

The module checks every payment with payFURL before Magento invoices the order: the charge must have succeeded for the order's amount and currency, and a charge another order already uses is refused. A saved card can only be charged for the customer it was saved for.

Some payment methods (PayID, PayTo and other checkout methods) are still pending when the order is placed. Those orders wait in Payment Review with an unpaid invoice until the payment settles: with the webhook below, or when you open the order and press Get Payment Update. A payment that fails cancels the invoice.

Webhooks

The webhook settles pending payments without anyone pressing Get Payment Update:

  1. In the payFURL portal, on Webhooks, add a Transaction webhook with the URL https://<your store>/payfurl/webhook.
  2. Copy the Webhook Secret Key from Account Info in the portal into the Webhook signing key setting.

The store checks each webhook's signature with that key, then asks payFURL for the payment's status: the webhook's own content is never trusted.

Apple Pay

Apple Pay shows at checkout when Enable ApplePay is Yes and payFURL reports an Apple Pay gateway for your account. In the payFURL portal that takes:

  1. Settings > Apple Pay: Apple Pay turned on for the account. The account's legal name, website and country (in its settings) must be filled in.
  2. The gateway connection that takes Apple Pay, with Apple Pay turned on.

Apple also verifies every domain your checkout runs on, and who does that depends on the gateway:

  • Westpac PayWay: PayWay's own Apple Pay button runs the payment, so the domain is registered with Westpac, not payFURL. Set up Apple Pay for your PayWay facility with Westpac, and follow their domain steps.
  • Other gateways: in Settings > Apple Pay, download the domain verification file and make it reachable at https://<your domain>/.well-known/apple-developer-merchantid-domain-association (with Magento's web root at pub/, it goes in pub/.well-known/), without a redirect or a login. Then add each domain on that page. Apple checks the file on all of them; one that fails stops the others being added.

Apple Pay then shows in Safari on a Mac, and in browsers on iPhone and iPad, for shoppers with a card in Apple Wallet. The portal's Settings > Apple Pay page shows each connection's status.

Content Security Policy

Magento's checkout enforces a Content Security Policy (restrict mode on payment pages since 2.4.7). The module's etc/csp_whitelist.xml allows payFURL's hosts (*.payfurl.com) and the card schemes' and gateways' 3-D Secure and Click to Pay hosts. If the browser console shows a CSP error for another host during payment (a gateway's 3-D Secure page, for example), add that host in a csp_whitelist.xml of your own module and tell payFURL support.

Troubleshooting

Symptom Check
No payFURL methods at checkout Enabled is on, the keys match the Environment (press Validate Credentials), the cache is flushed, and your payFURL account has a gateway for the store's currency.
"Transaction has been declined. Please try again later." var/log/system.log has Payment Error: <reason>: a gateway decline code, or charge_status_failed, charge_amount_mismatch, charge_currency_mismatch, charge_reference_mismatch or charge_already_used when the payment did not match the order.
An order stays in Payment Review The payment hasn't settled yet. Press Get Payment Update on the order, and set up the webhook.
The card form or a wallet button doesn't load The browser console: a CSP error (see above) or a blocked assets.payfurl.com.
Anything else Turn Debug on and send var/log/payfurl.log to payFURL support. Personal and card details are masked in it.

Contributing

Bug reports and pull requests are welcome: see CONTRIBUTING.md.