getSessionByOrderId
Bir ödeme oturumu nesnesini sipariş tanımlayıcısına göre alın. 🔐 Bu yöntem yetkilendirme? gerektirir.
Ödemeler?.getSessionByOrderId( id? );
Minimal örnek
const value = await Payments.getSessionByOrderId(1764)
Şema
id(gerekli): number
Sipariş tanımlayıcısı
örnek: 12345
Bu yöntem...
Ö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,
"paymentUrl": null
}
Şema
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