You can access your charges from your templates via craft.stripecheckout.charges
{% set charges = craft.stripecheckout.charges.all() %}
{% for charge in charges %}
{{ charge.id }} - {{ charge.formattedAmount }}
{% endfor %}
craft.stripecheckout.charges
supports the following parameters:
Get charges by amount.
Get charges by amount refunded.
Get charges with the status set as succeeded
, pending
or failed
.
Get charges by three-letter ISO currency code.
Get charges related to an email address.
Get charges by error code (see the errors section for a list of codes).
Get charges in either live or test mode. Boolean value required.
Get charges that have been paid. Boolean value required.
Get charges that have been refunded. Boolean value required.
Get a charge related to a Stripe ID.