gform_paypal_ipn_url

gform_paypal_ipn_url

DescriptionUsageParametersExamplesPlacementSource Code

Description
Allows the PayPal IPN URL to which data is being posted to be modified.
Usage
add_filter( 'gform_paypal_ipn_url', 'your_function_name', 10, 1 );

Parameters

$url string
The IPN URL.

Examples
add_filter( 'gform_paypal_ipn_url', 'change_ipn_url', 10, 1 );
function change_ipn_url( $url ){
//send all requests to the sandbox
return "https://www.sandbox.paypal.com/cgi-bin/webscr/";
}

Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in GFPayPal::verify_paypal_ipn() in gravityformspaypal/class-gf-paypal.php.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註