hello how can i integrate a payment api to my vix website
In order to use an external API you need first to make sure that the API provider made it available and open to use.
You can integrate with any external source using Wix-Fetch API.
Specifically for payment API I would recommend to read the following article regarding accepting payment in your site.
Here is the list of Available Payment Providers in Wix.
Hope it helps.