Whenever you're dealing with a charge in your template, you're actually working with a ChargeModel object.
Outputting a ChargeModel object without attaching a property or method will return the charge's formatted amount.
<h1>{{ charge }}</h1>
Would output:
5.00 GBP
A positive integer in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency) representing how much to charge. The minimum amount is $0.50 US or equivalent in charge currency.
Amount in pence refunded (can be less than the amount attribute on the charge if a partial refund was issued).
The status of the payment is either succeeded
, pending
, or failed
.
Returns the URL to the charge within the control panel.
Three-letter ISO currency code.
The full charge object provided by Stripe.
A DateTime object of the date the charge was created.
A DateTime object of the date the charge was last updated.
An arbitrary string attached to the object. Often useful for displaying to users.
Error code explaining reason for charge failure if available (see the errors section for a list of codes).
Message to user further explaining reason for charge failure if available.
The amount followed by the currency.
This is the email address that the receipt for this charge was sent to.
The charge record ID.
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
true
if the charge succeeded, or was successfully authorised for later capture.
Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false
.
The charge ID supplied by Stripe.
Returns the URL to the charge in the Stripe dashboard.