How To Connect to A 3rd Party Payment Gateway and Process payment on there page and return a confirmation API or Token ?

Hi I was trying to add 3rd party payment gateway Cashfree(Due To there 1.75% ,one off the lowest transaction charges).
But How Can I achieve The Following :
I want to Direct the checkout flow (like in case of paypal )to the Cashfree hosted payment form (As they provide several payment Methods). There user will complete the payment and the token of success or failure of transection will be returned back to wix site and Order will be placed and Thank You page will be displayed .
Basically It will be like how paypal in Wix checkout works
Here is a link to there documentation for Cashfree hosted payment form : https://docs.cashfree.com/docs/web/guide

Thanks in Advance

Hi! in order to connect a 3rd party Payment Gateway you’ll need to use Wix Fetch API: https://support.wix.com/en/article/corvid-accessing-third-party-services-with-the-fetch-api
Here you can find a related coding example: https://www.wix.com/corvid/forum/community-discussion/example-stripe-payment-processing