2017 © Pedro Peláez
 

library gravityforms

Gravity Forms driver for the WordPress payment processing library.

image

wp-pay-extensions/gravityforms

Gravity Forms driver for the WordPress payment processing library.

  • Thursday, August 2, 2018
  • by remcotolsma
  • Repository
  • 4 Watchers
  • 3 Stars
  • 3,936 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 36 Versions
  • 2 % Grown

The README.md

WordPress Pay Extension: Gravity Forms

Gravity Forms driver for the WordPress payment processing library., (*1)

WordPress Actions

gform_ideal_fulfillment

Description

This hook runs when a transaction is completed successfully for the Pronamic Pay plugin and can be used to fire actions dependent on a successful transaction., (*2)

Usage

add_action( 'gform_ideal_fulfillment', 'your_function_name', 10, 2 );

Parameters

$entry | Entry Object, (*3)

The entry used to generate the transaction., (*4)

$feed | Feed Object, (*5)

The Feed configuration data used to generate the order., (*6)

Examples

/**
 * Gravity Forms iDEAL fulfillment hook.
 *
 * @see https://github.com/wp-pay-extensions/gravityforms/blob/1.6.4/src/Extension.php#L750-L751
 * @param array $entry
 * @param Pronamic_WP_Pay_Extensions_GravityForms_PayFeed $feed
 */
function custom_gform_ideal_fulfillment( $entry, $feed ) {
    $payment_id = gform_get_meta( $entry['id'], 'pronamic_payment_id' );

    $payment = get_pronamic_payment( $payment_id );

    error_log( print_r( $payment, true ) );
}

add_action( 'gform_ideal_fulfillment', 'custom_gform_ideal_fulfillment', 10, 2 );
/**
 * Gravity Forms iDEAL fulfillment hook.
 *
 * @see https://github.com/wp-pay-extensions/gravityforms/blob/1.6.4/src/Extension.php#L750-L751
 * @param array $entry
 * @param Pronamic_WP_Pay_Extensions_GravityForms_PayFeed $feed
 */
function gform_ideal_fulfillment_update_entry( $entry, $feed ) {
     $field_id = '';

     $entry[ $field_id ] = 'New value';

     GFAPI::update_entry( $entry );
}

add_action( 'gform_ideal_fulfillment', 'gform_ideal_fulfillment_update_entry', 10, 2 );

WordPress Filters

pronamic_pay_gravityforms_delay_actions

Description

Filters the delay actions to display on the payment feed settings page and to process., (*7)

Usage

add_filter( 'pronamic_pay_gravityforms_delay_actions', 'your_function_name' );

Examples

<?php

/**
 * Filter Pronamic Pay delay actions for Gravity Forms.
 *
 * @link https://gist.github.com/rvdsteege/6b0afe10f81b1bc99d335ff484206fa9
 */
\add_filter( 'pronamic_pay_gravityforms_delay_actions', function( $delay_actions ) {
    $delay_actions['gp_unique_id'] = array(
        'active'                      => true,
        'meta_key'                    => '_pronamic_pay_gf_delay_gp_unique_id',
        'delayed_payment_integration' => false,
        'label'                       => \__( 'Wait for payment to create a Gravity Perks Unique ID.', 'text-domain' ),
        'delay_callback'              => function() {
            \add_filter( 'gpui_wait_for_payment', function( $enabled ) {
                $enabled = true;

                return $enabled;
            } );

            \add_filter( 'gpui_wait_for_payment_feed', function( $feed, $form, $entry ) {
                if ( class_exists( '\Pronamic\WordPress\Pay\Extensions\GravityForms\FeedsDB' ) ) {
                    $feed = \Pronamic\WordPress\Pay\Extensions\GravityForms\FeedsDB::get_feed_by_entry_id( $entry['id'] );

                    if ( null === $feed ) {
                        $feeds = \Pronamic\WordPress\Pay\Extensions\GravityForms\FeedsDB::get_active_feeds_by_form_id( $entry['form_id'] );

                        $feed = array_shift( $feeds );
                    }
                }

                return $feed;
            } );
        },
        'process_callback'            => function( $entry, $form ) {
            \gp_unique_id_field()->populate_field_value( $entry, $form, true );
        }
    );

    return $delay_actions;
} );
  • https://gist.github.com/remcotolsma/d6257e299ab24908d9b9f14537b52a85

The Versions

01/06 2018

dev-master

9999999-dev http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+ GPL-3.0-or-later

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

01/06 2018

2.0.1

2.0.1.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0-or-later

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

14/05 2018

2.0.0

2.0.0.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0-or-later

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

12/12 2017

1.6.7

1.6.7.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

13/09 2017

1.6.6

1.6.6.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

07/04 2017

1.6.5

1.6.5.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

15/03 2017

1.6.4

1.6.4.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

15/03 2017

1.6.3

1.6.3.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

11/02 2017

1.6.2

1.6.2.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

09/02 2017

1.6.1

1.6.1.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

25/01 2017

1.6.0

1.6.0.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

16/11 2016

1.5.2

1.5.2.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

28/10 2016

1.5.1

1.5.1.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

27/10 2016

1.5.0

1.5.0.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

20/10 2016

1.4.9

1.4.9.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

06/07 2016

1.4.8

1.4.8.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

08/06 2016

1.4.7

1.4.7.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

13/04 2016

1.4.6

1.4.6.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

23/03 2016

1.4.5

1.4.5.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

23/03 2016

1.4.4

1.4.4.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

02/03 2016

1.4.3

1.4.3.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

12/02 2016

1.4.2

1.4.2.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

05/02 2016

1.4.1

1.4.1.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

01/02 2016

1.4.0

1.4.0.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

21/10 2015

1.3.2

1.3.2.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

14/10 2015

1.3.1

1.3.1.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

16/06 2015

1.3.0

1.3.0.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

26/05 2015

1.2.4

1.2.4.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

02/04 2015

1.2.3

1.2.3.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

03/03 2015

1.2.2

1.2.2.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

13/02 2015

1.2.1

1.2.1.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

12/02 2015

1.2.0

1.2.0.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

06/02 2015

1.1.0

1.1.0.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

20/01 2015

1.0.2

1.0.2.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic

02/01 2015

1.0.1

1.0.1.0 http://www.wp-pay.org/extensions/gravityforms/

Gravity Forms driver for the WordPress payment processing library.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

wordpress wp extension pay gravityforms pronamic