Changeset 3227447
- Timestamp:
- 01/23/2025 12:21:39 PM (14 months ago)
- Location:
- razorpay-gravity-forms/trunk
- Files:
-
- 3 edited
-
class-gf-razorpay.php (modified) (4 diffs)
-
razorpay.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
razorpay-gravity-forms/trunk/class-gf-razorpay.php
r3183676 r3227447 164 164 { 165 165 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); 167 167 } 168 168 … … 390 390 } 391 391 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 } 393 402 394 403 if ( is_array( $confirmation ) && isset( $confirmation['redirect'] ) ) { … … 560 569 } 561 570 562 public function generate_razorpay_order($ entry, $form)571 public function generate_razorpay_order($confirmation, $form, $entry) 563 572 { 564 573 $feed = $this->get_payment_feed( $entry ); … … 606 615 GFAPI::update_entry($entry); 607 616 617 $httpSecure = is_ssl() ? true : false; 618 608 619 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); 610 621 611 622 echo $this->generate_razorpay_form($entry, $form); -
razorpay-gravity-forms/trunk/razorpay.php
r3183676 r3227447 5 5 Plugin URI: https://wordpress.org/plugins/razorpay-gravity-forms 6 6 Description: Integrates Gravity Forms with Razorpay Payments, enabling end users to purchase goods and services through Gravity Forms. 7 Version: 1.3. 68 Stable tag: 1.3. 67 Version: 1.3.7 8 Stable tag: 1.3.7 9 9 Author: Team Razorpay 10 10 Author URI: https://razorpay.com … … 20 20 21 21 22 define('GF_RAZORPAY_VERSION', '1.3. 6');22 define('GF_RAZORPAY_VERSION', '1.3.7'); 23 23 24 24 add_action('admin_post_nopriv_gf_razorpay_webhook', "gf_razorpay_webhook_init", 10); -
razorpay-gravity-forms/trunk/readme.txt
r3183676 r3227447 4 4 Requires at least: 3.9.2 5 5 Tested up to: 6.1.1 6 Stable tag: 1.3. 66 Stable tag: 1.3.7 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 40 40 41 41 == Changelog == 42 43 = 1.3.7 = 44 * Added support for confirmation types(Page, Redirect). 42 45 43 46 = 1.3.6 =
Note: See TracChangeset
for help on using the changeset viewer.