Transaction
Key | Type | Description |
---|---|---|
id | integer | Internal transaction ID |
uuid | string|integer | Public transaction ID |
time | datetime (YYYY-MM-DD HH:MM:SS) | Date and time of transaction creation |
status | string waiting confirmed cancelled declined authorized reserved refunded refund_pending (see changelog) partially-refunded (see changelog) chargeback (see changelog) error (see changelog) uncaptured (see changelog) | The status of the transaction, please see Notifications (Webhooks) for more information on the status. |
lang | string | ISO 639-1 of shopper language |
psp | string | Name of the payment service provider used |
pspId | integer | The ID of the payment service provider (see Miscellaneous) |
amount (see changelog) | integer | The amount of the transaction in the smallest unit of the transaction currency (for refunds it is the amount of the refund transaction) |
shopand-ay_fee | integer | The transaction fee charged by Shop & Pay (does not include fees from acquiring or interchange fees). The fee is provided in smallest unit of the currency. |
preAuthorizationId | integer | The ID of the origin pre-authorization transaction (see changelog) |
payment | array | Payment mean as array -brand (lowercase string) -cardNumber (truncated PAN) (see changelog) -expiry (format: YY-MM) (see changelog) The brand is a lowercase string |
referenceId | string | The reference which has been passed when creating a Gateway / Invoice. OR: The referenceId which has been passed along with a charge on a pre-authorization. |
metadata | Metadata object | See documentation |
subscription | Subscription object | See documentation |
invoice | Invoice object | See documentation |
contact | Contact object | See documentation |
Example
<?php
array(
'id' => 1,
'uuid' => '82m09f9',
'time' => '2014-11-18 13:44:53',
'status' => 'waiting',
'lang' => 'en',
'psp' => 'Test',
'shopandpay_fee' => 0,
'payment' => array(
'brand' => 'VISA'
),
'metadata' => Metadata,
'subscription' => Subscription,
'invoice' => Invoice,
'contact' => Contact,
);
Updated over 3 years ago