-
You can use
Mini AppSDK, which is a JavaScript library that provides a simple interface for interacting with GoPay Mini App features, such as retrieving location information and obtaining authorization codes.NotesYou can download the JS SDK here: JS SDKhttps://www.npmjs.com/package/@gopay/miniapp-client (make sure you have version 0.3.19)
-
Once installed, import
Mini AppSDKand initialize the SDK in your JavaScript code:import MiniAppSDK from '@gopay/miniapp-client'; const inProductionEnvironment = import.meta.env.PROD; const miniAppSdk = new MiniAppSDK({useDummyService: !inProductionEnvironment}); -
You can view the readme files of the SDK for further clarification on what the SDK does.
www.npmjs.com/@gopay/miniapp-client