WC_Gateway_Paypal::get_transaction_url PHP Метод

get_transaction_url() публичный Метод

Get the transaction URL.
public get_transaction_url ( WC_Order $order ) : string
$order WC_Order
Результат string
    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);
    }