Plugin Directory

Changeset 3227447


Ignore:
Timestamp:
01/23/2025 12:21:39 PM (14 months ago)
Author:
razorpay
Message:

Update: 1.3.7

Location:
razorpay-gravity-forms/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • razorpay-gravity-forms/trunk/class-gf-razorpay.php

    r3183676 r3227447  
    164164    {
    165165        parent::init_frontend();
    166         add_action('gform_after_submission', array($this, 'generate_razorpay_order'), 10, 2);
     166        add_filter('gform_confirmation', array($this, 'generate_razorpay_order'), 10, 4);
    167167    }
    168168
     
    390390        }
    391391
    392         $confirmation = GFFormDisplay::handle_confirmation( $form, $entry, false );
     392        $form = GFFormDisplay::update_confirmation($form, $entry);
     393
     394        if (rgar($form['confirmation'], 'type') == 'message')
     395        {
     396            $confirmation = GFFormDisplay::get_confirmation_message($form['confirmation'], $form, $entry, []);
     397        }
     398        else
     399        {
     400            $confirmation = array('redirect' => GFFormDisplay::get_confirmation_url($form['confirmation'], $form, $entry));
     401        }
    393402
    394403        if ( is_array( $confirmation ) && isset( $confirmation['redirect'] ) ) {
     
    560569    }
    561570
    562     public function generate_razorpay_order($entry, $form)
     571    public function generate_razorpay_order($confirmation, $form, $entry)
    563572    {
    564573        $feed            = $this->get_payment_feed( $entry );
     
    606615            GFAPI::update_entry($entry);
    607616
     617            $httpSecure = is_ssl() ? true : false;
     618
    608619            setcookie(self::RAZORPAY_ORDER_ID, $entry[self::RAZORPAY_ORDER_ID],
    609                 time() + self::COOKIE_DURATION, COOKIEPATH, COOKIE_DOMAIN, false, true);
     620                time() + self::COOKIE_DURATION, COOKIEPATH, COOKIE_DOMAIN, $httpSecure, true);
    610621
    611622            echo $this->generate_razorpay_form($entry, $form);
  • razorpay-gravity-forms/trunk/razorpay.php

    r3183676 r3227447  
    55Plugin URI: https://wordpress.org/plugins/razorpay-gravity-forms
    66Description: Integrates Gravity Forms with Razorpay Payments, enabling end users to purchase goods and services through Gravity Forms.
    7 Version: 1.3.6
    8 Stable tag: 1.3.6
     7Version: 1.3.7
     8Stable tag: 1.3.7
    99Author: Team Razorpay
    1010Author URI: https://razorpay.com
     
    2020
    2121
    22 define('GF_RAZORPAY_VERSION', '1.3.6');
     22define('GF_RAZORPAY_VERSION', '1.3.7');
    2323
    2424add_action('admin_post_nopriv_gf_razorpay_webhook', "gf_razorpay_webhook_init", 10);
  • razorpay-gravity-forms/trunk/readme.txt

    r3183676 r3227447  
    44Requires at least: 3.9.2
    55Tested up to: 6.1.1
    6 Stable tag: 1.3.6
     6Stable tag: 1.3.7
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4040
    4141== Changelog ==
     42
     43= 1.3.7 =
     44* Added support for confirmation types(Page, Redirect).
    4245
    4346= 1.3.6 =
Note: See TracChangeset for help on using the changeset viewer.