Поддержка WooCommerce Как уменьшить клики до формы оплаты?

  • На сайте есть гейтвей, который ведёт на банк и оплата только 3ds,
    А значит, мы ничего не теряем в безопасности ускоряя действия менеджерам,

    У меня есть гейтвей:

     // The global ID for this Payment method
        $this->id = "cc_gateway";
    
        // The Title shown on the top of the Payment Gateways Page next to all the other Payment Gateways
        $this->method_title = __( "CC Gateway", 'cc-gateway' );
    
        // The description for this Payment Gateway, shown on the actual Payment options page on the backend
        $this->method_description = __( "Allows payments via credit card", 'cc-gateway' );
    
        // The title to be used for the vertical tabs that can be ordered top to bottom
        $this->title = __( "CC Gateway", 'cc-gateway' );

    И есть мой объект WC_ORDER который я создал.

    $order->add_product( get_product( $pid ), 1, $price_params ); // pid 8 //& qty 1
    $order->set_address( $address_billing, 'billing' );
    $order->set_total($post_price);
    $order->calculate_totals();

    Затем я вызываю функцию:
    $order->set_payment_method('cc_gateway');

    А как теперь мне реализовать само нажатие на кнопку оплаты?

    • Тема изменена 6 лет, 4 месяца назад пользователем glebmatorin.
  • Тема «Как уменьшить клики до формы оплаты?» закрыта для новых ответов.