wp-pay-extensions / gravityforms
Gravity Forms driver for the WordPress payment processing library.
Installs: 27 102
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 6
Forks: 4
Type:wordpress-plugin
Requires
- php: >=8.1
- automattic/jetpack-autoloader: ^3.0
- composer/installers: ^2.2
- pronamic/ideal-issuers: ^1.1
- pronamic/wp-datetime: ^2.1
- pronamic/wp-gravityforms-nl: ^3.0
- pronamic/wp-money: ^2.4
- pronamic/wp-number: ^1.3
- pronamic/wp-pay-logos: ^2.2
- woocommerce/action-scheduler: ^3.7
- wp-pay/core: ^4.19
Requires (Dev)
- php-coveralls/php-coveralls: ^2.7
- phpmd/phpmd: ^2.15
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.11
- pronamic/gravityforms: ^2.8
- pronamic/pronamic-cli: ^1.1
- pronamic/wp-coding-standards: ^2.2
- pronamic/wp-documentor: ^1.4
- roots/wordpress: ^6.0
- szepeviktor/phpstan-wordpress: ^1.3
- vimeo/psalm: ^5.24
- wp-pay-gateways/mollie: ^4.12
- wp-phpunit/wp-phpunit: ^6.4
- yoast/phpunit-polyfills: ^2.0
- dev-main
- v4.8.1
- v4.8.0
- v4.7.0
- v4.6.1
- v4.6.0
- v4.5.8
- v4.5.7
- v4.5.6
- v4.5.5
- v4.5.4
- v4.5.3
- v4.5.2
- v4.5.1
- v4.5.0
- v4.4.2
- v4.4.1
- v4.4.0
- 4.3.0
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.1
- 4.1.0
- 4.0.1
- 4.0.0
- 3.0.2
- 3.0.1
- 3.0.0
- 2.7.0
- 2.6.1
- 2.6.0
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.1
- 2.4.0
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.15
- 2.1.14
- 2.1.13
- 2.1.12
- 2.1.11
- 2.1.10
- 2.1.9
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.1
- 2.0.0
- 1.6.7
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.9
- 1.4.8
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.2
- 1.0.1
- dev-process-delayed-actions-when-free
This package is auto-updated.
Last update: 2024-12-17 14:28:56 UTC
README
Gravity Forms driver for the WordPress payment processing library.
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.
Usage
add_action( 'gform_ideal_fulfillment', 'your_function_name', 10, 2 );
Parameters
$entry
| Entry Object
The entry used to generate the transaction.
$feed
| Feed Object
The Feed configuration data used to generate the order.
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.
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; } );