WooCommerce Pay Later Payment Gateway WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
A Payment Gateway for WooCommerce that allows Customers to Pay Later at Checkout.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/creativelittledots/woocommerce-pay-later/archive/refs/heads/master.zipWooCommerce Pay Later Payment Gateway
A Payment Gateway for WooCommerce that allows Customers to Pay Later at Checkout.
After a Customer has checked via Pay Later, the Customer is directed to the Order Received page and is sent an invoice using the built in WooCommerce Customer Invoice email.
There is a filter you can use called wc_pay_later_order_received_url to direct to a custom page if you'd prefer to direct the Customer to a different page:
apply_filters( 'wc_pay_later_order_received_url', $order->get_checkout_order_received_url(), $order, $this )
Which can be used in functions.php like this:
add_filter( 'wc_pay_later_order_received_url', 'redirect_to_custom_page', 10, 3 );
function redirect_to_custom_page( $url, $order, $gateway ) {
return add_query_arg(array(
'order_id' => $order->id,
'gateway_id' => $gateway->id,
'some_arbitrary' => 'text'
), 'http://somedomain.com');
// results in a redirect to http://somedomain.com?order_id={{order_id}}&gateway_id=pay_later&some_arbitrary=text
}
Orders that are checked out via Pay Later result in the status of pending. Customers can pay for the Order by clicking the Pay button in their My Account > Orders area.
Installation
- Upload the plugin to the /wp-content/plugins/ directory
- Activate the plugin through the 'Plugins' menu in WordPress
Requirements
PHP 5.4+
Wordpress 4+
WooCommerce 2.5+
License
Releases
4 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.