Payment Attempt Object

A Tazapay Payment Attempt refers to an instance where a transaction is attempted through the Tazapay platform, either as part of a checkout process or other payment-related workflows. Each payment attempt captures essential details of the transaction, including the amount, currency, payment method, status, and any relevant metadata.

Object

{
    "status": "success",
    "message": "",
    "data": {
        "amount": 9899,
        "balance_transaction": "btr_d679f6dqd9ne66lsngb0",
        "charge_currency": "PLN",
        "created_at": "2023-07-23T08:03:29.718275Z",
        "customer": "cus_d209e84kspu2df5phfm0",
        "customer_details": {
            "country": "PL",
            "email": "[email protected]",
            "name": "Jan",
            "phone": {
                "calling_code": "48",
                "number": "1234369"
            }
        },
        "fx_transaction": {
            "exchange_rate": 0.219768,
            "final": {
                "amount": 2173,
                "currency": "EUR"
            },
            "id": "fx_d209ek2fhufa9pkp5c4g",
            "initial": {
                "amount": 9888,
                "currency": "PLN"
            },
            "object": "fx_transaction"
        },
        "id": "pat_d209ek5qd9ne66lsn6gg",
        "metadata": null,
        "object": "payment_attempt",
        "payin": "chk_d209e85qd65u66lsn1g0",
        "payment_method_details": {
            "card": {
                "cardholder_name": "jan cebella",
                "checks": {
                    "cvc_check": "pass"
                },
                "expiry": {
                    "month": 7,
                    "year": 2031
                },
                "first6": "428771",
                "funding": "debit",
                "issuer": "ing bank slaski sa",
                "issuing_country": "pl",
                "last4": "6095",
                "scheme": "visa",
                "three_d_secure": {
                    "eci": "05",
                    "result": "attempt_acknowledged",
                    "version": "2.2.0"
                }
            },
            "type": "card"
        },
        "reference_id": "TR000001385673188",
        "refunded": "true",
        "status": "succeeded",
        "status_description": ""
    }

Parameters

Payment Attempt

ParameterTypeDescription
idstringThe Tazapay ID of the payment attempt.
objectstringThe object type, which is "payment_attempt".
created_atstring (ISO Date)The date and time when the payment attempt was created.
amountnumberThe amount attempted to be paid in the charge currency.
balance_transactionstringThe balance transaction id associated with the payment attempt.
customerstringThe unique Tazapay customer id.
customer_detailsobjectCustomer Details.
reference_idstringReference id attached to the payment attempt.
charge_currencystringThe currency in which the payment was attempted (e.g., SGD).
payinstringThe reference to the payin object related to the checkout transaction.
payment_method_detailsstringThe payment method details used in this attempt
refundedbooleanIndicates whether the payment attempt has been refunded.
statusstringThe status of the payment attempt (e.g., succeeded, failed).
status_descriptionstringA description providing more information about the payment attempt status
final_currencystringThe final currency after the payment is converted, if applicable (e.g., USD).
fx_transactionobjectDetails about the foreign exchange transaction, if any. Check FX transaction object
metadatajsonAdditional key value pairs related to the payment attempt (optional).