Skip to content

Latest commit

 

History

History
57 lines (31 loc) · 1.13 KB

craft-stripecheckout-charges.md

File metadata and controls

57 lines (31 loc) · 1.13 KB

craft.stripecheckout.charges

How to get charges

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 %}

Parameters

craft.stripecheckout.charges supports the following parameters:

amount

Get charges by amount.

amountRefunded

Get charges by amount refunded.

chargeStatus

Get charges with the status set as succeeded, pending or failed.

currency

Get charges by three-letter ISO currency code.

email

Get charges related to an email address.

failureCode

Get charges by error code (see the errors section for a list of codes).

live

Get charges in either live or test mode. Boolean value required.

paid

Get charges that have been paid. Boolean value required.

refunded

Get charges that have been refunded. Boolean value required.

stripeId

Get a charge related to a Stripe ID.