transaction | Root element
❯ token | The token uniquely identifying this transaction (not the created payment method) at Spreedly
❯ succeeded | true
if the transaction request was successfully executed, false
otherwise
❯ retained | if the payment method was set to be automatically retained on creation
❯ payment_method | The payment method created as part of this transaction
❯❯ token | The token identifying the newly created payment method in the Spreedly vault
❯❯ storage_state | The storage state of the payment method
❯❯ test | true
if this payment method is a test payment method and cannot be used against real gateways or receivers
❯❯ payment_method_type | The type of this payment method, e.g., credit_card
, bank_account
, apple_pay
, google_pay
, third_party_token
, etc…
❯❯ errors | If the payment method is invalid (missing required fields, etc…), there will be associated error messages here