c payment status updates on.', 'pronamic_ideal' ), ); return $fields; } public function get_config( $post_id ) { $config = new Config(); $config->website_key = get_post_meta( $post_id, '_pronamic_gateway_buckaroo_website_key', true ); $config->secret_key = get_post_meta( $post_id, '_pronamic_gateway_buckaroo_secret_key', true ); $config->excluded_services = get_post_meta( $post_id, '_pronamic_gateway_buckaroo_excluded_services', true ); $config->invoice_number = get_post_meta( $post_id, '_pronamic_gateway_buckaroo_invoice_number', true ); $config->mode = get_post_meta( $post_id, '_pronamic_gateway_mode', true ); return $config; } /** * Get gateway. * * @param int $post_id Post ID. * @return Gateway */ public function get_gateway( $post_id ) { return new Gateway( $this->get_config( $post_id ) ); } }