sepa duplicate payments for same order
-
hello,
since last upgrade of the WooCommerce Stripe Gateway to Version 8.6.1?
duplicates sepa are back, even using the php fix :
add_filter( ‘woocommerce_subscription_get_payment_method’, ‘use_sepa_updated_checkout_gateway_id_for_subscriptions’ );
/**
- Filters the return value of ‘WC_Subscription::get_payment_method()’.
* - Returns ‘stripe_sepa_debit’ if UPE is enabled and the gateway is ‘stripe_sepa’.
* - @param string $value The payment method ID.
- @return string
*/
function use_sepa_updated_checkout_gateway_id_for_subscriptions( $value ) {
if (
‘stripe_sepa’ === $value &&
class_exists( ‘WC_Stripe_Feature_Flags’ ) &&
WC_Stripe_Feature_Flags::is_upe_checkout_enabled()
) {
return ‘stripe_sepa_debit’;
} return $value;
}
can you assist urgently please?
The page I need help with: [log in to see the link]
- Filters the return value of ‘WC_Subscription::get_payment_method()’.
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘sepa duplicate payments for same order’ is closed to new replies.