getSessionByOrderId
Bir ödeme oturumu nesnesini sipariş tanımlayıcısına göre al 🔐 Bu yöntem yetkilendirme gerektirir.
Payments.getSessionByOrderId(id)
const value = await Payments.getSessionByOrderId(1764)
Şema
id:* number
Alınan ödeme oturumu nesnesinin tanımlayıcısı
örnek: 1764
Bu yöntem...
Örnek dönüş:
{
"id": 1764,
"createdDate": "2025-03-02T21:56:53.600Z",
"updatedDate": "2025-03-02T21:56:53.600Z",
"type": "session",
"status": "completed",
"orderId": 1,
"paymentAccountId": 1,
"paymentUrl": "https://checkout.stripe.com/c/pay/cs_...",
"clientSecret": "pi_3MtwBwLkdIwHu7ix28a3tq..."
}
Şema
id: number
nokta tanımlayıcısı
örnek: 1764
createdDate: string($date-time)
Nesne oluşturulma tarihi
updatedDate: string($date-time)
Nesne güncellenme tarihi
type:* string
Oturum türü Enum: [ session, intent ]
örnek: session
status:* string
Ödeme durumu Enum: [ waiting, completed, canceled, expired ]
örnek: completed
orderId:* number
Sipariş ID'si
örnek: 1
paymentAccountId:* number
Ödeme hesap ID'si
örnek: 1
paymentUrl:* string
Ödeme bağlantısı
örnek: https://checkout.stripe.com/c/pay/cs_...
clientSecret: string
Gizli anahtar
örnek: pi_3MtwBwLkdIwHu7ix28a3tqPa_secret...