Name | Required | Description |
---|---|---|
paymentUid | Yes | The uid of the payment |
onPaymentSuccess | No | Callback function to be executed upon successful payment processing |
onPaymentCancellation | No | Callback function to be executed upon payment processing failure |
onEventTypePaymentInfoSuccess | No | Callback function to be executed when payment information is successfully processed. |
onEventTypePaymentInfoFailure | No | Callback function to be executed upon payment information processing failure. |
Setup stripe in event types atom
Use booker atom to access payment uid
onCreateBookingSuccess
which is a callback function that gets called at the time of a successful booking creation. This function takes a parameter called data
which contains the payment uid and another property called paymentRequired which can be used to detect if the booking requires payment or not. You can use the payment uid to access the payment form atom.Either store the payment uid in your database, a local state variable or pass it into another page as query parameters.Below code snippet can be used to obtain the payment uid from the booker atomSet up a page for payments