Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: the "Offline donations" section in the controls of the Payment Gateways block should be visible when Offline gateway for v3 forms is enabled #7492

Merged
merged 1 commit into from
Aug 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class EnqueueOfflineFormBuilderScripts
/**
* Enqueues the Stripe scripts and styles for the Form Builder.
*
* @unreleased On the "offlineEnabled" option check if the offline gateway is enabled for v3 forms instead of v2 forms
*
* @return void
*/
public function __invoke()
Expand All @@ -34,7 +36,7 @@ public function __invoke()
'givewp-offline-gateway-form-builder',
'window.giveOfflineGatewaySettings = ' . wp_json_encode(
[
'offlineEnabled' => give_is_gateway_active(OfflineGateway::id()),
'offlineEnabled' => give_is_gateway_active(OfflineGateway::id(), 3),
'offlineSettingsUrl' => admin_url(
'edit.php?post_type=give_forms&page=give-settings&tab=gateways&section=offline-donations'
),
Expand Down
Loading