getAccounts
Get all payment accounts as array
Payments.getAccounts()
const value = await Payments.getAccounts()
This method get payment account as an array. It returns a Promise that resolves to a payment account object.
Example return:
[
{
"id": 2,
"localizeInfos": {
"title": "Stripe"
},
"identifier": "stripe",
"type": "stripe",
"isVisible": true
}
]
Schema
id: number
object identifier
example: 1764
updatedDate: string
object modification date
version: number
object modification version number
example: 10
identifier: string
text identifier for the recording field
example: catalog
localizeInfos: Record<string, any>
json description of the main page data object taking into account the language "en_US" (for example)
example:
{
"title": "Catalog",
"plainContent": "Content for catalog",
"htmlContent": "<b>Content for catalog</b>",
"menuTitle": "Catalog"
}
type: string
type may be 'stripe', 'paypal' or 'custom'
example: stripe
isVisible: boolean
visibility indicator of the payment account
example: true