sunflowerz
Новичок

На сайте есть гейтвей, который ведёт на банк и оплата только 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();
Есть ли хуки, чтобы я смог получать ссылки подобным образом?
А значит, мы ничего не теряем в безопасности ускоряя действия менеджерам при тщательных проверках.
У меня есть гейтвей:
// 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();
Есть ли хуки, чтобы я смог получать ссылки подобным образом?