Tribe__Tickets__Commerce__PayPal__Gateway::get_handler_slug()
Returns the slug of the default payment handler.
Return
(string)
Source
File: src/Tribe/Commerce/PayPal/Gateway.php
public function get_handler_slug() {
/**
* Filters which PayPal payment method should be used.
*
* @since 4.7
*
* @param string $handler One of `pdt` or `ipn`
*/
$handler = apply_filters( 'tribe_tickets_commerce_paypal_handler', 'ipn' );
$handler = in_array( $handler, array( 'pdt', 'ipn' ) ) ? $handler : 'ipn';
return $handler;
}
Changelog
| Version | Description |
|---|---|
| 4.7 | Introduced. |