just to clarify customers can pay for admin created orders with woopayments credit/debit cards but not PayPal.
Hello @slservice33
Thank you for reaching out!
There could be several reasons for this behavior, including a potential conflict with a third-party plugin or theme. Unfortunately, it’s difficult to determine the exact cause without taking a closer look at your store’s configuration.
I’d recommend contacting our support team directly so we can investigate this further and help you identify the cause. You can open a support ticket through our service desk here: Request Support.
Please include the URL of this thread in your ticket for reference.
We’ll be happy to take a closer look!
Kind Regards
Krystian
I submitted that. Its just something else for you to fix in a future update.
Stephen
Actually it was my error. I had to update the snippet to allow users to pay without logging in.
from
add_filter( ‘user_has_cap’, ‘bbloomer_order_pay_without_login’, 9999, 3 );
function bbloomer_order_pay_without_login( $allcaps, $caps, $args ) {
if ( isset( $caps[0], $_GET[‘key’] ) ) {
if ( $caps[0] == ‘pay_for_order’ ) {
$order_id = isset( $args[2] ) ? $args[2] : null;
$order = wc_get_order( $order_id );
if ( $order ) {
$allcaps[‘pay_for_order’] = true;
}
}
}
return $allcaps;
}
add_filter( ‘woocommerce_order_email_verification_required’, ‘__return_false’ );
to
function bbloomer_order_pay_without_login( $allcaps, $caps, $args ) {
if ( isset( $args[0] ) && ‘pay_for_order’ === $args[0] ) {
$order_id = isset( $args[2] ) ? $args[2] : 0;
$order = wc_get_order( $order_id );
if ( $order && $order->get_id() ) {
$allcaps[‘pay_for_order’] = true;
}
}
return $allcaps;
}
/**
- Disable email verification requirement on pay for order page
*/
add_filter( ‘woocommerce_order_email_verification_required’, ‘__return_false’, 9999 );