Topic 16
Payment Update (topic 16) is triggered whenever a Stripe payment attempt is logged. This includes the initial RequiresPaymentMethod state and subsequent processing, success, cancellation, action-required, failure, and session-expired updates.
Payload
Loyale sends an HTTP POST whose JSON body is a StripePaymentResultView.
| Property | Type | Notes |
|---|---|---|
id | uuid | Payment identifier |
gross | decimal | Payment amount |
fee | decimal | Loyale fee plus processing fee |
customerId | string | null | |
customer | BasicCustomerModel | null | |
transactionId | uuid | null | |
transaction | TransactionResultView | null | |
lastFailureMessage | string | null | |
paymentIntentId | string | null | Stripe payment-intent or checkout-session identifier |
currency | string | null | |
status | StripePaymentStatus | Processing, Succeeded, Canceled, RequiresPaymentMethod, RequiresConfirmation, RequiresAction, RequiresCapture, Failed, SessionExpired, RefundPending, PartiallyRefunded, Refunded, or CommunicationError |
productType | StripeProductType | Other, GiftCard, Voucher, Sale, TopUp, or Subscription |
createdBy | string | null | |
updatedBy | string | null | |
createdDate | date-time | UTC |
updatedDate | date-time | UTC |
schemeStripeLinkId | uuid | |
internalSubscriptionId | uuid | null | |
subscriptionPlanId | uuid | null | |
purchasedObjectType | string | null | |
purchasedObjectId | string | null | |
providerInvoiceId | string | null | |
providerChargeId | string | null | |
providerPaymentId | string | null | |
providerSubscriptionId | string | null | |
providerAccountId | string | null | |
livemode | boolean | Stripe live-mode flag |
orderId | string | null | |
guest | string | null | |
schemeStripeLink | SchemeStripeLinkResultView | null | |
stripePaymentAttempts | StripePaymentAttemptResultView[] | null |
Updated about 8 hours ago