Plugin Directory

Changeset 2888184


Ignore:
Timestamp:
03/28/2023 09:06:07 AM (3 years ago)
Author:
teamswipe
Message:

Update Plugin

Location:
swipe-for-gravity-forms/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • swipe-for-gravity-forms/trunk/README.md

    r2876620 r2888184  
    44Requires at least: 4.6
    55Tested up to: 6.0.1
    6 Stable tag: 1.0.4
     6Stable tag: 1.0.5
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    2626## Changelog
    2727
     281.0.5 - 2023-03-28
     29- Add event for success and fail
     30
    28311.0.4 - 2023-03-08
    2932- Fix add email
  • swipe-for-gravity-forms/trunk/includes/class-swipego-gf-gateway.php

    r2876620 r2888184  
    468468        if ($type == 'complete_payment') {
    469469            $form = GFAPI::get_form( $entry['form_id'] );
    470             $notifications = $this->get_notifications_to_send($form);
    471             GFCommon::send_notifications($notifications, $form, $entry, true, 'form_submission');
     470           
     471            // notify to event complete payment
     472            $notifications = $this->get_notifications_to_send($form, 'complete_payment');
     473            GFCommon::send_notifications($notifications, $form, $entry, true, 'complete_payment');
     474        }
     475       
     476        if ($type == 'fail_payment') {
     477            $form = GFAPI::get_form( $entry['form_id'] );
     478           
     479            // notify to event fail payment
     480            $notifications = $this->get_notifications_to_send($form, 'fail_payment');
     481            GFCommon::send_notifications($notifications, $form, $entry, true, 'fail_payment');
    472482        }
    473483
     
    485495    }
    486496   
    487     public function get_notifications_to_send($form)
     497    public function get_notifications_to_send($form, $status)
    488498    {
    489499        $notifications_to_send  = array();
    490500
    491501        foreach ($form['notifications'] as $notification) {
    492             if (rgar($notification, 'event') != 'form_submission') {
     502            if (rgar($notification, 'event') != $status) {
    493503                continue;
    494504            }
  • swipe-for-gravity-forms/trunk/readme.txt

    r2876620 r2888184  
    44Requires at least: 4.6
    55Tested up to: 6.0.1
    6 Stable tag: 1.0.4
     6Stable tag: 1.0.5
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    9191
    9292== Changelog ==
     93= 1.0.5 - 2023-03-28
     94- Add event for success and fail
    9395
    9496= 1.0.4 - 2023-03-08 =
  • swipe-for-gravity-forms/trunk/swipego-gf.php

    r2876620 r2888184  
    33 * Plugin Name:       Swipe for Gravity Forms
    44 * Description:       Swipe payment integration for Gravity Forms.
    5  * Version:           1.0.4
     5 * Version:           1.0.5
    66 * Requires at least: 4.6
    77 * Requires PHP:      7.0
Note: See TracChangeset for help on using the changeset viewer.