bookmark_bordergform_paypal_save_config

Description

This filter is fired when the PayPal feed is saved. It allows custom configuration options to be saved with the PayPal feed.

Usage

add_filter( 'gform_paypal_save_config', 'your_function_name' );

Parameters

  • $feed Feed Object

    The configuration details for the current feed.

Examples

This example shows how to save the custom options added in the example on gform_paypal_option_group page to the PayPal configuration meta.

add_filter( 'gform_paypal_save_config', 'save_paypal_config' );
function save_paypal_config( $feed ) {

    $feed['meta']['my_third_party']['use_invoice_id'] = RGForms::post('my_third_party_invoice_id');
    $feed['meta']['my_third_party']['transactions'] = RGForms::post('my_third_party_transactions');

    return $feed;
}

Source Code

apply_filters( 'gform_paypal_save_config', $feed )

This filter is located in GFPayPal::save_feed_settings() in class-gf-paypal.php