WC_Gateway_Paypal::get_transaction_url()
Get the transaction URL.
Метод класса: WC_Gateway_Paypal{}
Хуков нет.
Возвращает
Строку
.
Использование
$WC_Gateway_Paypal = new WC_Gateway_Paypal(); $WC_Gateway_Paypal->get_transaction_url( $order );
- $order(WC_Order) (обязательный)
- Order object.
Код WC_Gateway_Paypal::get_transaction_url() WC Gateway Paypal::get transaction url WC 8.7.0
public function get_transaction_url( $order ) { if ( $this->testmode ) { $this->view_transaction_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_view-a-trans&id=%s'; } else { $this->view_transaction_url = 'https://www.paypal.com/cgi-bin/webscr?cmd=_view-a-trans&id=%s'; } return parent::get_transaction_url( $order ); }