WC_Gateway_Paypal::get_transaction_url() public WC 1.0
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 5.0.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 );
}