Redirect user to thank you page (No matter payment accepted or not)

in Development
I have integration a PayU integration at "http://www.radiashaker.com" now is is working as follows:
1. User Select Product
2. Go to cart
3. Fill billing and personal information
4. Select Payment Method (Pay U)
5. Click on Buy
6. This will redirect user to payment page
7. User fill credit card info for payment
8. It will redirect user to thank you page (No matter payment accepted or not)
9. On thank you page Lightspeed call a webhook to get order status, webhook will return "completed" if payment marked as a success otherwise it will return "pending" What's the issue:- In Lightspeed admin order always showing as a "awaiting payment".
Could you please let me know why the orders are still showing as a "awaiting payment"?
Tags:
Answers
hi @mahmoud, the status returned by your application if the payment is accepted, should be 'paid', not 'completed.' Take a look at the payment integration workflow documentation here: https://developers.lightspeedhq.com/ecom/tutorials/create-a-payment-service-integration/#get-return-the-customer for more details.
Lightspeed HQ