getAccountById
Bir ödeme hesap nesnesini tanımlayıcısına göre al 🔐 Bu yöntem yetkilendirme gerektirir.
Payments.getAccountById(id)
const value = await Payments.getAccountById(1764)
Şema
id:* number
Alınan ödeme hesap nesnesinin tanımlayıcısı
örnek: 1764
Bu yöntem, bir ödeme hesap nesnesini tanımlayıcısına göre alır. Bir ödeme hesap nesnesine çözülmek üzere bir Promise döner.
Örnek dönüş:
{
"id": 2,
"localizeInfos": {
"title": "Stripe"
},
"identifier": "stripe",
"type": "stripe",
"isVisible": true
}
Şema
id: number
nokta tanımlayıcısı
örnek: 1764
updatedDate: string
nokta değiştirme tarihi
version: number
nokta değiştirme sürüm numarası
örnek: 10
identifier: string
kaydetme alanı için metin tanımlayıcısı
örnek: katalog
localizeInfos: Record<string, any>
dil "en_US" göz önünde bulundurularak ana sayfa veri nesnesinin json tanımı (örneğin)
örnek:
{
"title": "Katalog",
"plainContent": "Katalog için içerik",
"htmlContent": "<b>Katalog için içerik</b>",
"menuTitle": "Katalog"
}
type: string
tür 'stripe', 'paypal' veya 'custom' olabilir
örnek: stripe
isVisible: boolean
ödeme hesabının görünürlük göstergesi
örnek: true