From 639ced5c9123fe57db0d437fbba5c966ef5ad217 Mon Sep 17 00:00:00 2001
From: Philipp Stracker
Date: Tue, 28 May 2024 16:41:33 +0200
Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20incorrect=20links=20to=20A?=
=?UTF-8?q?P/GP=20payment=20settings?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The settings button for Apple Pay and Google Pay now directs users to the correct tab and section.
---
modules/ppcp-applepay/services.php | 2 +-
modules/ppcp-googlepay/services.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/ppcp-applepay/services.php b/modules/ppcp-applepay/services.php
index 003c8226c..6079fcb40 100644
--- a/modules/ppcp-applepay/services.php
+++ b/modules/ppcp-applepay/services.php
@@ -964,7 +964,7 @@ return array(
: $container->get( 'applepay.enable-url-sandbox' );
$button_url = $enabled
- ? admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=ppcp-gateway#field-alternative_payment_methods' )
+ ? admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=ppcp-gateway&ppcp-tab=ppcp-credit-card-gateway#ppcp-applepay_button_enabled' )
: $enable_url;
return sprintf(
diff --git a/modules/ppcp-googlepay/services.php b/modules/ppcp-googlepay/services.php
index f7e195821..6f41db792 100644
--- a/modules/ppcp-googlepay/services.php
+++ b/modules/ppcp-googlepay/services.php
@@ -926,7 +926,7 @@ return array(
: $container->get( 'googlepay.enable-url-sandbox' );
$button_url = $enabled
- ? admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=ppcp-gateway#field-alternative_payment_methods' )
+ ? admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=ppcp-gateway&ppcp-tab=ppcp-credit-card-gateway#ppcp-googlepay_button_enabled' )
: $enable_url;
return sprintf(