{% load static %}

Payment method

{% if not object %}
{% else %}

This information not hosted on CRM side and provided via Stripe API

{% if object.billing_details.name %}
{{ object.billing_details.name }}
{% endif %}
{% if object.card.wallet.type == 'apple_pay' %} {{ card.wallet.type }} {% endif %} {{ object.card.brand }}
{{ object.card.brand|title }} expires {{ object.card.exp_month|stringformat:"02d" }} / {{ object.card.exp_year }}
**** **** **** {{ object.card.last4 }}
{% if object.card.three_d_secure_usage.supported %} True {% else %} True {% endif %}
{% if object.billing_details.address.line1 %}
{% if object.billing_details.address %} {% with object.billing_details.address as addr %} {{ addr.line1 }}
{% if addr.line2 %}{{ addr.line2 }}
{% endif %} {{ addr.state }}, {{ addr.city }}, {{ addr.postal_code }}, {{ addr.country }} {% endwith %} {% else %} - {% endif %}
{% endif %}
{{ object.billing_details.phone|default:'No phone number provided' }}
{{ object.billing_details.email }}
{% endif %}