getSessionByOrderId
Bir ödeme oturumu nesnesini sipariş tanımlayıcısına göre alın. 🔐 Bu yöntem yetkilendirme gerektirir.
Açıklama
Bir Promise döner ve bu Promise, IAccountsEntity nesnesine çözülür.
Ödemeler.getSessionByOrderId(
id*);
Parametreler şeması
Şema
id(zorunlu): number
Sipariş tanımlayıcısı
örnek: 12345
Örnekler
Minimal örnek
const response = await Payments.getSessionByOrderId(1764);
Örnek yanıt
[
{
"id": 1,
"createdDate": "2025-02-25T10:52:59.634Z",
"updatedDate": "2025-02-25T10:52:59.634Z",
"type": "session",
"status": "waiting",
"paymentAccountId": 1,
"orderId": 2,
"amount": null,
"paymentUrl": null
}
]
Yanıt şeması
Şema: IAccountsEntity
id: number
Nesne tanımlayıcısı.
örnek: 12345
localizeInfos: ILocalizeInfo
Ödeme hesabı nesnesinin Json açıklaması.
identifier: string
Kayıt alanı için metin tanımlayıcısı.
ö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
testMode: boolean
Ödeme hesabının test modunda olup olmadığını gösterir.
örnek: true
settings: IPaymentAccountSettings
Ödeme hesabı ayarları.
örnek: { "status": "connected" }
settings.status: string
Canlı (test olmayan) ödeme hesabının bağlantı durumu.
örnek: "connected"
testSettings: object
Ödeme hesabı için test modu ayarları.
updatedDate: string
Nesne değişiklik tarihi.
örnek: "2025-02-26T10:13:16.839Z"