Best way to integrate payment?

Yes I am successfully able to charge the card BUT it responds to the front end with Payment Failed. Doesn’t make sense to me. I’ll keep at it but I do not know what exactly the front end is looking for as a response from the backend in a successful transaction or failed.