Skip to content

Commit 7770d7a

Browse files
authored
Update ACH capability check key (#4064)
1 parent 36b4198 commit 7770d7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

includes/class-wc-stripe-helper.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,9 @@ public static function filter_payment_methods_with_capabilities( $payment_method
738738

739739
foreach ( $payment_method_ids as $payment_method_id ) {
740740
$key = $payment_method_id . '_payments';
741+
if ( WC_Stripe_UPE_Payment_Method_ACH::STRIPE_ID === $payment_method_id ) {
742+
$key = $payment_method_id . '_ach_payments';
743+
}
741744
// Check if the payment method has capabilities set in the account data.
742745
// Generally the key is the payment method id appended with '_payments' (i.e. 'card_payments', 'sepa_debit_payments', 'klarna_payments').
743746
// In some cases, the Stripe account might have the legacy key set. For example, for Klarna, the legacy key is 'klarna'.

0 commit comments

Comments
 (0)