Adds booking data to SDK success event (#6737)
parent
16adf86c8c
commit
a90419c40b
|
@ -255,6 +255,7 @@ export default function Success(props: SuccessProps) {
|
||||||
if (!sdkActionManager) return;
|
if (!sdkActionManager) return;
|
||||||
// TODO: We should probably make it consistent with Webhook payload. Some data is not available here, as and when requirement comes we can add
|
// TODO: We should probably make it consistent with Webhook payload. Some data is not available here, as and when requirement comes we can add
|
||||||
sdkActionManager.fire("bookingSuccessful", {
|
sdkActionManager.fire("bookingSuccessful", {
|
||||||
|
booking: bookingInfo,
|
||||||
eventType,
|
eventType,
|
||||||
date: date.toString(),
|
date: date.toString(),
|
||||||
duration: calculatedDuration,
|
duration: calculatedDuration,
|
||||||
|
|
Loading…
Reference in New Issue