Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders
Payoneer::is_in_test_mode_onboarding
Try to determine if the payment gateway is in test mode onboarding (aka sandbox or test-drive).
This is a best-effort attempt, as there is no standard way to determine this. Trust the true value, but don't consider a false value as definitive.
Method of the class: Payoneer{}
No Hooks.
Returns
true|false. True if the payment gateway is in test mode onboarding, false otherwise.
Usage
$Payoneer = new Payoneer(); $Payoneer->is_in_test_mode_onboarding( $payment_gateway ): bool;
- $payment_gateway(WC_Payment_Gateway) (required)
- The payment gateway object.
Payoneer::is_in_test_mode_onboarding() Payoneer::is in test mode onboarding code WC 10.7.0
public function is_in_test_mode_onboarding( WC_Payment_Gateway $payment_gateway ): bool {
// Test mode is actually sandbox mode for Payoneer, affecting the API credentials used.
return $this->is_in_test_mode( $payment_gateway );
}