Payment
{#
Using the update cart action you could allow the user to select the payment method here.
We recommend using ajax to set this, so no page refresh is needed. This would also allow you to dynamically show or hide the credit card form
on method change.
#}
{% set storedCards = craft.commerce.paymentSources.allPaymentSourcesByUserId(currentUser.id ?? null) %}
{% if not craft.commerce.gateways.allCustomerEnabledGateways|length %}
No payment methods available.
{% endif %}
{% if craft.commerce.gateways.allCustomerEnabledGateways|length %}
{% endif %}
{% if cart.gatewayId or cart.paymentSourceId %}
{% endif %}
{% include "shop/_includes/order-review" with { showShippingAddress: true, showShippingMethod: true } %}