get_meta( '_afridirect_receipt_no' ); $receipt_generator = AfriDirect_Payment_Receipt_Generator::instance(); $receipt_url = $receipt_number ? $receipt_generator->get_receipt_url( $receipt_number ) : ''; echo "= " . esc_html( $email_heading ) . " =\n\n"; /* translators: %s: Customer's first name */ echo sprintf( esc_html__( 'Hi %s,', 'afridirect-payment' ), esc_html( $order->get_billing_first_name() ) ) . "\n\n"; /* translators: %s: Order number */ echo sprintf( esc_html__( 'Great news! Your payment for order #%s has been approved.', 'afridirect-payment' ), esc_html( $order->get_order_number() ) ) . "\n\n"; /** * Show order details. */ // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); if ( $receipt_url ) { echo "\n" . esc_html__( 'View Your Receipt', 'afridirect-payment' ) . "\n"; echo esc_html__( 'You can view and print your receipt by visiting:', 'afridirect-payment' ) . "\n"; echo esc_url( $receipt_url ) . "\n\n"; } echo esc_html__( 'Thank you for your payment!', 'afridirect-payment' ) . "\n\n"; echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; /** * Email footer. */ // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound do_action( 'woocommerce_email_footer', $email ); // phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound