Here are the steps to do that:
(1) Go to the Stripe URL for webhooks: https://dashboard.stripe.com/webhooks
(2) Click on the "Add Endpoint" button on the top right. In the endpoint url field, enter the url in the following format (replacing domain.com with your own website domain: https://domain.com/index.php?option=com_pmform&task=payment_confirm&payment_method=os_stripecheckout
(3) For the Listen To field, use "Events on your account"
(4) For the "Select events to listen to" , select "checkout.session.completed"
And save it by clicking the Add Endpoint button.