juspay / hyper-sdk-flutter

Flutter Plugin over Hyper SDK
https://juspay.in
GNU Affero General Public License v3.0
4 stars 12 forks source link

IOS Flutter #32

Open Ruthishkumar opened 3 months ago

Ruthishkumar commented 3 months ago

My app gets stuck when initializing the HyperSDK with the method HyperSDK().initiate(initiatePayload, initiateCallbackHandler) on iOS.

Subhash703 commented 3 months ago

Hi @Ruthishkumar - What do you mean when you say app getting stuck? Is app becoming unresponsive? Could you please share a video recording if possible?

Also, could you please confirm if the initiate payload you are passing is correct?

Initiate Payload Ref -

var initiatePayload = {
        "requestId": const Uuid().v4(),
        "service": merchantDetails["service"],
        "payload": {
          "action": "initiate",
          "merchantId": merchantDetails["merchantId"],
          "clientId": merchantDetails["clientId"],
          "environment": "sandbox/production"
        }
};

Please check if you are getting any response in initiateCallbackHandler after calling initiate?

You can checkout the example application added in the plugin to see the integration steps.