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 );