dqa35710 2018-05-28 18:22 采纳率: 0%
浏览 96

Woocommerce WorldPay支付网关状态

I am using WooCommerce and WorldPay payment gateway. My client requirement to display the same order status as in the WorldPay account order status. Like when order is placed and payment is completed then status is shown AUTHORISED. My client says it should be also shown AUTHORISED in woocommerce order status. And when WorldPay order status after 15 minute to 30 minutes changed from AUTHORISED to CAPTURED, In Woocommerce it should also be changed from AUTHORISED to CAPTURED.

Is there any way to change to status as WorldPay? Please help

  • 写回答

1条回答 默认 最新

  • doucheng1063 2018-05-28 18:36
    关注

    WorldPay has a API where you can check the status.
    https://developer.worldpay.com/jsonapi/api#getorder

    You can do this with a WordPress Cronjob and change the Woocommerce Order status very easy.

    $order = new WC_Order($order_id);
    $order->update_status('pending', 'order_note');
    
    评论

报告相同问题?

悬赏问题

  • ¥15 r包runway详细安装教程
  • ¥15 Html中读取Json文件中数据并制作表格
  • ¥15 谁有RH342练习环境
  • ¥15 STM32F407 DMA中断问题
  • ¥15 uniapp连接阿里云无法发布消息和订阅
  • ¥25 麦当劳点餐系统代码纠错
  • ¥15 轮班监督委员会问题。
  • ¥20 关于变压器的具体案例分析
  • ¥15 生成的QRCode圖片加上下載按鈕
  • ¥15 板材切割优化算法,数学建模,python,lingo