{% extends 'shop/_layouts/main' %} {% if not currentUser %} {% exit 404 %} {% endif %} {% block main %} {% set paymentSources = craft.commerce.paymentSources.getAllPaymentSourcesByUserId(currentUser.id) %} {% if paymentSources|length %}