You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for the library, currently i have problem with the import statement
how can I import the package using ejs syntax in my client? import snap from 'midtrans-client'
currently the available docs only explain about common js import const blah = require('midtrans-client')
thank you
The text was updated successfully, but these errors were encountered:
Hi @RobyCigar do you mean this is for client side is front end?
This library/package is mainly NOT FOR FRONTEND (Browser's javascript) usage, but for backend (Node JS server) usage:
This is mainly for backend usage, to do secure server-to-server/backend-to-backend API call.
You may/will encounter CORS issue if you are using this to do API request from frontend.
Your API ServerKey may also be exposed to public if you are using this on frontend.
thanks for your reply @Andrenzo17
sorry I thought the word client in "midtrans-nodejs-client" mean its for the client(frontend)
Initially i was looking for snap npm package, the docs said i should add inline script in my html, but i feel like its not a proper way to add package directly using inline script in my project, i would rather using npm than inline script, so i stumbled to this repo.
Hi, thanks for the library, currently i have problem with the import statement
how can I import the package using ejs syntax in my client?
import snap from 'midtrans-client'
currently the available docs only explain about common js import
const blah = require('midtrans-client')
thank you
The text was updated successfully, but these errors were encountered: