We are a startup developping our business operations in Paris, France.
Aiming to originate our MVP and meet our next goals, we are now seriously considering adopting Bubble products.
However, we have one last pending point regarding payment API : does Bubble supports Vivawallet ?
Having tried few courses and tested some plugins already, we can find it.
Unfortunately , having consulted the forum, it seems that information related to this specific payment API is quite poor.
As an unexperienced developer, the only reasonable option might be to implement my own API calls (plugin may be challenging…).
I started to follow tutorials and advices to initialize my first API calls, that remain unsuccessful.
Do you where I can find any help for implementation ?
Many thanks !
Best
Bonjour @hekafab
Each API are different. For example, this one have different authentication process. Do you plan to use the Basic one or the oAuth2 one? This is the first thing to check and choose according to what you want todo. If you plan to only use your own account, you can choose the Basic one. But if you want to let your user authenticate with their own Account, you will need to use oAuth2 process.
If you struggle with API call, consider asking a Bubble Coach to help you
Indeed I spent quite sometime to figure out which one to use. As I aim to sell retail products from the app, the payment part is crucial. This is why I’m starting by that before any further app development.
From my research I understand that oAuth2 is definitely a lot safer but also way more complex to implement.
My first attempts were made on a POST http and following tutorials (How to Connect APIs to Bubble io Tutorial Part 2 - YouTube). I started using Basic as a try but could not initialize a successful call (neither using JSON or Curl).
Do you have an idea of the approximate time it could take to implement with oAuth2 ?
The issue, for now, it’s not related to auth. It’s related to your endpoint. You are doing a call to the root of the API, and not to a specific endpoint.
Try to do this simple one
Change POST to GET
change url to https://demo.vivapayments.com/api/wallets/
This call should be a Data call. Remove any parameters, json body or header in this call.
This call will return a list of wallet for your account
This error is related to auth. Checked a little bit more the auth info in the doc and you need to encode the username and api key into base64 and use Header (Use key in Header instead of basic auth https://www.base64encode.org/ will let you encode both. What I think is that you need to encode both path with colon like username:apikey
The header will be Authorization: Basic ZmJmMWUwOTAtNjVkZS00Yzc1LWI1ODAtZDlkOWJjNDk0YWQyOldEdi1WKw==
I still don’t understand why their documentation indicates that Username and Password should be encoded as it’s working without…
Thanks a lot jmalmeida !
Both should work, but in some case, it will not depending on what the server expect. Because you have already tried it, I was thinking it didn’t work.
No problem Jici.
Anyway I found extremely complex just to get a single call working using very simple approach so I’m quite sceptical on the ability to implement the full version.