In woocommerce, is it possible to make payment of one customer order by another customer ?
i.e. If customer A place an order and customer B make payment of this order.
Thanks in advance.
In woocommerce, is it possible to make payment of one customer order by another customer ?
i.e. If customer A place an order and customer B make payment of this order.
Thanks in advance.
Share Improve this question asked Jun 17, 2019 at 12:24 VeerVeer 11 bronze badge 1- Questions about WooCommerce are being considered off topic here, as it is a 3rd party library. You can try the support forum or the woocommerce support instead – kero Commented Jun 17, 2019 at 12:47
1 Answer
Reset to default 0It is indeed possible.
An order could be generated either via customer A or via the orders screen on the backend.
I'm unaware of a way to get the URL to pay from any admin screens as an existing feature but there is a function to get the payment URL.
You would basically pass in the order ID of customer A and it will show the URL to give to customer B. Use the following snippet where $order_id
is the order number of customer A:
$order = wc_get_order($order_id);
$pay_url = esc_url( $order->get_checkout_payment_url() );
echo $pay_url;
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745393912a4625790.html
评论列表(0条)