check payment status and custom order received page
-
Hello,
I would like to customize my order-received page to show the payment status using Paypal IPN response.
I’m not sure about how to proceed, so I created this action in functions.php :
add_action('check_payment_status', 'paypal_ipn_check_payment_status', 10, 1); function function_name($posted) { $payment_status = isset($posted['payment_status']) ? $posted['payment_status'] : ''; }
Is it the good way to do it ?
How can I test now in my order-received template if paypal payment is OK or not (and show a text message payment OK or KO) ?
Thank for your help.
Regards.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘check payment status and custom order received page’ is closed to new replies.