'; printf( __( '%s payment does not work without Javascript. Please enable Javascript or use a different payment method.', 'chargeio-for-woocommerce' ), $cio4wc->settings['title'] ); echo ''; // Payment method description if ( $cio4wc->settings['description'] ) { echo '

' . $cio4wc->settings['description'] . '

'; } // Get user database object $chargeio_customer_info = get_user_meta( get_current_user_id(), $cio4wc->settings['chargeio_db_location'], true ); if ( is_user_logged_in() && $chargeio_customer_info && isset( $chargeio_customer_info['cards'] ) && count( $chargeio_customer_info['cards'] ) && $cio4wc->settings['saved_cards'] === 'yes' ) : // Add option to use a saved card foreach ( $chargeio_customer_info['cards'] as $i => $credit_card ) : $checked = ( $chargeio_customer_info['default_card'] == $credit_card['id'] ) ? ' checked' : ''; if ( $i === 0 && $chargeio_customer_info['default_card'] === '' ) { $checked = ' checked'; } ?> >