[Help] Integrate API with Sample

Dear Bubblers,

Thanks for all the kind and fast response i got from this community, my MVP was in final stage.
i am trying to integrate a local payment processor.

a API reference (Javascript)

const options = {
method: ‘POST’,
headers: {Accept: ‘text/plain’, ‘Content-Type’: ‘application/*+json’},
body: ‘{“paymentToken”:“string”,“locale”:“string”,“clientID”:“3fa85f64-5717-4562-b3fc-2c963f66afa6”}’
};
fetch(‘https://sandbox-pgw.2c2p.com/payment/4.1/CardTokenInfo’, options)
then(response => response.json())
then(response => console.log(response))
catch(err => console.error(err));

What is the right way to enter this API call?
API Reference link : /payment/4.1/CardTokenInfo

Thanks for the helping hand in my dream catching journey!

2 Likes

William thanks alot.

you have opened new posibilities for me!