Skip to content

Instantly share code, notes, and snippets.

@NickGreen
Created February 15, 2020 23:01
Show Gist options
  • Save NickGreen/d0b1e7b842bf98a43a5f1aaa097ac53f to your computer and use it in GitHub Desktop.
Save NickGreen/d0b1e7b842bf98a43a5f1aaa097ac53f to your computer and use it in GitHub Desktop.
Print all IPN data to PP standard logs
<?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