WC_Gateway_Paypal::get_transaction_url
Get the transaction URL.
Method of the class: WC_Gateway_Paypal{}
No Hooks.
Returns
String.
Usage
$WC_Gateway_Paypal = new WC_Gateway_Paypal(); $WC_Gateway_Paypal->get_transaction_url( $order );
- $order(WC_Order) (required)
- Order object.
WC_Gateway_Paypal::get_transaction_url() WC Gateway Paypal::get transaction url code WC 10.4.3
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 );
}