You appear to be a bot. Output may be restricted
Description
Method to check if all the required settings have been filled out, allowing us to not output information without it.
Usage
$bool = EDD_Amazon_Payments::is_setup();
Parameters
Returns
bool
Source
File name: easy-digital-downloads/includes/gateways/amazon-payments.php
Lines:
1 to 25 of 25
public function is_setup() { if ( null !== $this->is_setup ) { return $this->is_setup; } $required_items = array( 'merchant_id', 'client_id', 'access_key', 'secret_key' ); $current_values = array( 'merchant_id' => edd_get_option( 'amazon_seller_id', '' ), 'client_id' => edd_get_option( 'amazon_client_id', '' ), 'access_key' => edd_get_option( 'amazon_mws_access_key', '' ), 'secret_key' => edd_get_option( 'amazon_mws_secret_key', '' ), ); $this->is_setup = true; foreach ( $required_items as $key ) { if ( empty( $current_values[ $key ] ) ) { $this->is_setup = false; break; } } return $this->is_setup; }