Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders
AmazonPay::is_in_dev_mode
Try to determine if the payment gateway is in dev mode.
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: AmazonPay{}
No Hooks.
Returns
true|false. True if the payment gateway is in dev mode, false otherwise.
Usage
$AmazonPay = new AmazonPay(); $AmazonPay->is_in_dev_mode( $payment_gateway ): bool;
- $payment_gateway(WC_Payment_Gateway) (required)
- The payment gateway object.
AmazonPay::is_in_dev_mode() AmazonPay::is in dev mode code WC 10.7.0
public function is_in_dev_mode( WC_Payment_Gateway $payment_gateway ): bool {
return $this->is_amazon_pay_in_sandbox_mode( $payment_gateway ) ?? parent::is_in_dev_mode( $payment_gateway );
}