Once the zip checkout flow has redirected the customer to your previously defined "redirect_uri", that page should consume the the state of the checkout to determine if it has been approved, referred or declined. If the checkout has been approved, this page should then proceed to charge the customer.
Note
The /charges API call to complete the payment authorisation must be made within 15 minutes once a checkout has been approved. Checkouts will expire if not completed within this timeframe.
Useful notes
The Charges Response
-
amount DOUBLE
Amount of this charge. This is the amount that will be transferred (if capture=true) from customer to merchant account or ring-fenced if capture=false.
-
captured_amount DOUBLE
Total amount captured for this charge.
-
created_date STRING
The date on which the charge was created
-
currency STRING
Transaction currency. Accepted values are
AUD
NZD
USD
CAD
-
id STRING
Transaction ID
-
product STRING
Zip product name
-
interest_free_months INTEGER
Interest free period applied to a transaction in months
-
receipt_number DOUBLE
Transactoin receipt number
-
refunded_amount DOUBLE
Total amount refunded for this charge
-
state STRING
A successful state of the charge is
approved
captured
orauthorised
(For deferred payments)Ensure your system accepts
approved
captured
orauthorised
as valid responses -
customer.id STRING
Unique customer identifier
-
customer.first_name STRING
Customer's first name
-
customer.last_name STRING
Customer's last name
-
customer.email STRING
Customer's email address
-
customer_contribution BOOLEAN
Specifies if the Zip consumer contribution is enabled for a merchant account
Note: This functionality is only available for US merchants. False value is returned for AU and NZ transactions.