Success Message from Buy Button after successful Payment

Hello,

I am using the Buy Button on my own website. The user clicks the Buy Button and the Shopify Cart is shown where the user purchases the product.

I have two questions here:

  1. I need to know on my own website if the payment was successful or not. Does the Shopify Cart return any Success/Failure messages which I can return to my website?
  2. Once the payment is successful I would like to change the Continue Shopping button to say “Return to My Website” and have it redirect back to a particular URL

I am using the Flora Theme but since the only interaction which my User has is with the Shopify cart I can change to other themes as well.

Thanks for the help!

I think this might require some custom development. You will need to subscribe to the order/paid webhook, which will get fired once the payment goes through.

@zahid Thanks for your reply.
What about the second question: changing the text on the button after successful payment and then redirecting to a custom domain?