From c7288cadb0fd46679aa781bbc8c6ad88a43d5efe Mon Sep 17 00:00:00 2001 From: Mary Job Date: Mon, 25 Nov 2024 16:14:34 +0100 Subject: [PATCH] Create Add A Fixed Fee to Checkout When Using Stripe --- checkout/add-fixed-fee-stripe.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 checkout/add-fixed-fee-stripe.php diff --git a/checkout/add-fixed-fee-stripe.php b/checkout/add-fixed-fee-stripe.php new file mode 100644 index 0000000..8a7975e --- /dev/null +++ b/checkout/add-fixed-fee-stripe.php @@ -0,0 +1,28 @@ +initial_payment = $level->initial_payment + 3; //Updates initial payment value + $level->billing_amount = $level->billing_amount + 3; //Updates recurring payment value + } + } + return $level; +} + +add_filter( "pmpro_checkout_level", "my_pmpro_checkout_level" );