plugins - In woocommerce, is it possible to make payment of one customer order by another customer?

In woocommerce, is it possible to make payment of one customer order by another customer ? i.e. If customer A place an o

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
Add a comment  | 

1 Answer 1

Reset to default 0

It 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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信