/** * Delete data from Stripe's servers by passing an API endpoint * * @access public * @param string $delete_location * @return array */ public static function delete_data($delete_location) { global $s4wc; $response = wp_remote_post(self::$api_endpoint . 'v1/' . $delete_location, array('method' => 'DELETE', 'headers' => array('Authorization' => 'Basic ' . base64_encode($s4wc->settings['secret_key'] . ':')), 'timeout' => 70, 'sslverify' => false, 'user-agent' => 'WooCommerce-Stripe')); return S4WC_API::parse_response($response); }