Created
February 15, 2020 23:01
-
-
Save NickGreen/d0b1e7b842bf98a43a5f1aaa097ac53f to your computer and use it in GitHub Desktop.
Print all IPN data to PP standard logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'valid-paypal-standard-ipn-request', 'test_handle_paypal_ipn_and_record_response', - 1 ); | |
function test_handle_paypal_ipn_and_record_response( $posted ) { | |
WC_Gateway_Paypal::log( 'Data collected from IPN' . wc_print_r( $posted, true ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment