Install
Works with Drupal: ^10 | ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
17.83 KB
MD5: b46dd2d5e61f6ebc5716648324f09014
SHA-1: 5d9eab5727d6816885596389e4b457f12b9e02de
SHA-256: 2b9afe110602a4752b0295cb603d5c26607272dcbd235a801b9a1fbccf5028fa
Download zip
25.03 KB
MD5: 3145938817189cf13032711b3019a590
SHA-1: cc648020f1bbe5cd87bb40292401fb694cae486d
SHA-256: 8011959297fd9de6701756830f52a43081d3b81d0c370a93ab62153a58ce51d2
Release notes
Fixes how Wise deposits are recorded and matched to orders, and adds a config schema and an optional reference prefix.
Fixed
- A deposit is recorded once. Wise resends notifications, and sends one per webhook subscription; each used to create another payment. The payment's remote ID is now the deposit's Wise step ID.
- An order is placed only when the deposit covers what the pay link asked for: the order's balance, or the amount a
QuickPayLinkEventsubscriber set, such as a down payment. A smaller deposit is recorded and the order stays in checkout until the rest arrives. A deposit for an order already placed, such as an instalment, only adds a payment. - Money going out from the Wise account is no longer taken for a deposit.
- A deposit in another currency than the order's is logged, not recorded.
- Test notifications from Wise are acknowledged and ignored.
- Only a plain number names an order; values like "12.5" or "1e3" no longer do.
- A notification with a missing or invalid signature is refused with 403 and logged, instead of a 500 or a silent 200.
- The pay link asks for the order's balance, in plain form (243.75, not 243.750000), and its description is URL-encoded.
- The gateway's configuration has a config schema.
New
- Optional Reference prefix on the gateway (e.g.
SHOP-42). A deposit whose reference lacks it is not matite its own prefix when several share one Wise account. - Kernel tests.
Upgrading
- No update hook is needed; the prefix is empty by default, so references stay as they were.
- Sites that relied on any amount placing the order should set the amount the link asks for through
QuickPayLinkEvent::setBalance(). - API:
QuickPayInterfaceaddsgetReferencePrefix().QuickPay::createPayment()now takes($amount, ?string $remote_id). New payments store Wise's step ID as their remote ID, where they stored the balance ID before. - A site that ships its own schema for
commerce_payment.commerce_payment_gateway.plugin.wise_quick_payshould remove it, or addreference_prefixto it.
Issue: #3637383