From 1b44670fb2199f302b782a578d2dc348a48a6ce0 Mon Sep 17 00:00:00 2001 From: Razorpay Date: Thu, 7 Nov 2024 13:50:00 +0530 Subject: [PATCH] PO-238 reverting confirmation hook --- class-gf-razorpay.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class-gf-razorpay.php b/class-gf-razorpay.php index befdb3e..2dd3d5c 100644 --- a/class-gf-razorpay.php +++ b/class-gf-razorpay.php @@ -163,7 +163,7 @@ public static function get_instance() public function init_frontend() { parent::init_frontend(); - add_filter('gform_confirmation', array($this, 'generate_razorpay_order'), 10, 4); + add_action('gform_after_submission', array($this, 'generate_razorpay_order'), 10, 2); } public function plugin_settings_fields() @@ -559,7 +559,7 @@ public function is_callback_valid() return true; } - public function generate_razorpay_order($confirmation, $form, $entry) + public function generate_razorpay_order($entry, $form) { $feed = $this->get_payment_feed( $entry ); $submission_data = $this->get_submission_data( $feed, $form, $entry );