getSessionById
Bir ödeme oturumu nesnesini tanımlayıcısı ile alın. 🔐 Bu yöntem yetkilendirme gerektirir.
Açıklama
Bu yöntem, bir ödeme oturumu nesnesini tanımlayıcısı ile alır. Bir ödeme oturumu nesnesine çözümleyen bir Promise döner.
Ödemeler.getSessionById(
id*
);
Parametreler şeması
Şema
id(gerekli): number
Alınan ödeme oturumu nesnesinin tanımlayıcısı
örnek: 12345
Örnekler
Minimal örnek
const response = await Payments.getSessionById(1764);
Örnek yanıt
{
"id": 21,
"createdDate": "2025-02-26T10:13:16.839Z",
"updatedDate": "2025-02-26T10:13:16.839Z",
"type": "session",
"status": "waiting",
"paymentAccountId": 1,
"orderId": 43,
"paymentUrl": null
}
Yanıt şeması
Şema: ISessionEntity
id: number
Nesne tanımlayıcısı.
örnek: 1764
createdDate: string
Nesne oluşturulma tarihi.
örnek: "2025-02-26T10:13:16.839Z"
updatedDate: string
Nesne güncellenme tarihi.
örnek: "2025-02-26T10:13:16.839Z"
type: string
Tür 'session' veya 'intent' olabilir.
örnek: "session"
status: string
Ödeme durumu.
örnek: "completed"
paymentAccountId: number
Dış sağlayıcıdan alınan ödeme ID'si.
örnek: NaN
orderId: number
Sipariş tanımlayıcısı.
örnek: 1
paymentUrl: string | null
ödeme bağlantısı.
örnek: " https://www.sandbox.paypal.com/checkoutnow?token=9BE88048TU058770M"