createPayment( array( 'amount' => 10.50 ) ); * * @return \SablePay\SablePay|null Null when the plugin is not configured. */ function sablepay() { return \SablePay\WordPress\Settings::initializeSdk() ? \SablePay\SablePay::getInstance() : null; } } if ( ! function_exists( 'sablepay_enqueue' ) ) { /** * Enqueue the browser SDK (window.SablePay) on the current page. * Use this from a theme or plugin that calls SablePay.launchPayment(). */ function sablepay_enqueue() { \SablePay\WordPress\Assets::enqueue(); } }