payment_gateways->get_available_payment_gateways(); if ( isset( $gatways['payfast'] ) ) { return $gatways['payfast']; } return false; } /** * Custom receipt page for Payfast in WordPress Playground. * * Replaces the default redirect with an explanation for users explaining * that the WordPress Playground does not support payment redirection * for security reasons. * * @param \WC_Order $order The order object. */ function receipt_page( $order ) { ?>