Frontend APIs (V1)

  1. 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.

    📝

    Notes

    You can download the JS SDK here: JS SDKhttps://www.npmjs.com/package/@gopay/miniapp-client (make sure you have version 0.3.19)

  2. Once installed, import Mini AppSDK and 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});
  3. You can view the readme files of the SDK for further clarification on what the SDK does.
    www.npmjs.com/@gopay/miniapp-client