Hi, my clover sdk app is currently creating a tender button on the merchant side. When pressed, the user has an option to specify a username (which is connected to another service outside Clover). I know this is not the most ideal user interaction. My goal is to be able to pull data from the order after the payment is processed and send it to that specific user.
I've been reading through the docs, and I found the function:
This function returns a string which states whether the payment went through. Is there a function that runs after the payment is processed? I could then send order data to that specific username directly.
Otherwise, is there an area where I could check for that intent "action_payment_processed" post-payment, and if it is paid, I could then send the data?
As a last option, I heard that potentially a rest API could be a solution as well, but I'm not exactly sure how this would work.
Thank you for your help!