Tribe__Tickets__Commerce__PayPal__Gateway::get_base_url( string $path = '' )
Returns the PyaPal base URL
Contents
Parameters
- $path
-
(string) (Optional) An optional path to append to the URL
Default value: ''
Return
(string)
Source
File: src/Tribe/Commerce/PayPal/Gateway.php
public function get_base_url( $path = '' ) {
$path = '/' . ltrim( $path, '/' );
return tribe_get_option( 'ticket-paypal-sandbox' )
? $this->sandbox_base_url . $path
: $this->base_url . $path;
}
Changelog
| Version | Description |
|---|---|
| 4.7 | Introduced. |