How can I integrate an API payment into my site using Velo?

Hi! I need help with this.

We use the Redsys type payment that is not supported by Wix, but, Wix team tells me about a solution. They tell me that I can integrate this payment method with an API from my bank (I have it already different versions of it), and using Velo platform to integrate it with code.

I’m waiting a response from the Wix team, but I need to do something with the issue as soon as possible or my clients will be mad.

I can’t find any tutorial to do this integration. I don’t have any idea where I have to paste the API code, for example, and I don’t know which file I have to use, Java, PHP…(I upload a screenshot with the API files I have). Anybody can help me with this?! :sweat:Thank you so much!!

Hello. The screenshot you shared isn’t from a wix site so I’m a little confused. But if your payment provider exposes an API, you should be able to read the docs they provide to know how to interact with it. This is not something we would have a tutorial for, however, working with API’s in general is documented here:

Fetch API article

If your issue is with the payment provider API, I would reach out to them for more details on how to integrate.

Hi Amanda. The screenshot is the different API type my bank has. But I don’t know which one I have to use on Velo, PHP… java… ? And the other problem is, I don’t know to paste the code from the API files. I’ll upload another screenshot with an example of code.Sorry 'cause I’m so confused with all this process too. And it’s hard for me to explain all of this en English.
I’m going to read this link you gave me, maybe I can find some path to follow to solve this :slight_smile:

Thanks!!

Look like J-Query-Code .

If you would be so kind to show it as a CODE-Block-Text, instead of a picture, maybe someone would take a closer look onto it, without to loose time, to retype all the code from a picture.

And where this shown code can be found?
Where the provided API / REST-API can be found?

Apologies as I may not be understanding but let me try.

For your bank, it does not matter what they write their API in, you simply need to know the endpoint and instructions from their documentation to integrate properly.

If they are providing examples in different languages (PHP, Java, etc) you will want to look for JavaScript. In velo all of your backend and FE code is written in JS in a NodeJS environment.

Let me know if that is what you were asking.