Skip to content

Commit c764276

Browse files
mgascamtimur27
andauthored
[Afterpay] Fix wrong error message displayed in the checkout form with an invalid address (#9043)
Co-authored-by: Timur Karimov <[email protected]>
1 parent 0a92a50 commit c764276

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fix
3+
4+
Display an invalid address error instead of generic one in the checkout form when Afterpay is selected as payment method

includes/class-wc-payments.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ public static function init() {
441441
include_once __DIR__ . '/exceptions/class-order-not-found-exception.php';
442442
include_once __DIR__ . '/exceptions/class-order-id-mismatch-exception.php';
443443
include_once __DIR__ . '/exceptions/class-rate-limiter-enabled-exception.php';
444+
include_once __DIR__ . '/exceptions/class-invalid-address-exception.php';
444445
include_once __DIR__ . '/constants/class-base-constant.php';
445446
include_once __DIR__ . '/constants/class-country-code.php';
446447
include_once __DIR__ . '/constants/class-currency-code.php';

0 commit comments

Comments
 (0)