Ana içeriğe geç

getAccounts

Tüm ödeme hesaplarını dizi olarak alır.

Açıklama

Bu yöntem, ödeme hesabını bir dizi olarak alır. Bir ödeme hesabı nesnesi olan IAccountsEntity'ye çözülen bir Promise döner.

Ödemeler.getAccounts();

Örnekler

Minimal örnek

const response = await Payments.getAccounts();

Örnek yanıt

[
{
"id": 3,
"identifier": "stripe",
"isVisible": true,
"localizeInfos": {
"title": "Stripe"
},
"type": "stripe",
"isUsed": true,
"testMode": true,
"settings": {
"status": "not_connected"
},
"testSettings": {
"cancelUrl": "https://stage.oneentry.cloud/",
"successUrl": "https://stage.oneentry.cloud/",
"sessionTimeout": 15,
"stripe_account_id": "acct_1QwkKrAcSoNc7iev",
"stripe_redirect_url": "https://connect.stripe.com/setup/s/acct_1QwkKrAcSoNc7iev/P86lOscuMN2o",
"stripe_onboarding_complete": true,
"status": "not_connected"
}
},
{
"id": 2,
"identifier": "paypal",
"isVisible": true,
"localizeInfos": {
"title": "PayPal"
},
"type": "custom",
"isUsed": false,
"testMode": true,
"settings": {},
"testSettings": {}
},
{
"id": 1,
"identifier": "cash",
"isVisible": true,
"localizeInfos": {
"title": "Nakit"
},
"type": "custom",
"isUsed": true,
"testMode": true,
"settings": {},
"testSettings": {}
}
]

Yanıt şeması

Şema: IAccountsEntity

id: number
Nesne tanımlayıcısı.
örnek: 12345

localizeInfos: ILocalizeInfo
Ödeme hesabı nesnesinin JSON tanımı.

identifier: string
Kayıt alanı için metin tanımlayıcı.
örnek: "payment_12345"

type: 'stripe' | 'custom'
Tür 'stripe' veya 'custom' olabilir.
örnek: 'stripe'

isVisible: boolean
Ödeme hesabının görünürlük göstergesi.
örnek: true

isUsed: boolean
Ödeme hesabının kullanım göstergesi.
örnek: false