Re: VisaPaymentSDKException: SDK session is unavailable.

paul_earnest
Regular Contributor

VisaPaymentSDKException: SDK session is unavailable.

Dear Expert,

In VTS Implementation, while storing the provisioned token in the mobile application, when we call storeProvisionedToken API of Visa SDK to store the ProvisionResponse from MAP, we are getting VisaPaymentSDKException - SDK Session is unavailable. 

We do not have any references regarding handling the SDK session Exception. Can anyone help us to advise on the resolution please.

The complete error stacktrace log is:

visaPaymentSDK!!.storeProvisionedToken(context, provisionResponse, enrollmentId)

 

E/AndroidRuntime: FATAL EXCEPTION: main

    Process: com.neurogine.cbc.app, PID: 31221

    com.visa.cbp.sdk.facade.exception.VisaPaymentSDKException: SDK session is unavailable.

        at com.visa.cbp.sdk.ᵎ.storeProvisionedToken(Unknown Source:305)

        at com.neurogine.modules.visa.VisaUtils.storeProvisionedToken(VisaUtils.kt:195)

        at com.neurogine.modules.app.nfc.NfcFragment$provisionTokenRequest$1.onSuccess(NfcFragment.kt:159)

        at webservice.apis.visa.ProvisionTokenAPI$execute$1.onSuccess(ProvisionTokenAPI.kt:37)

        at webservice.apis.visa.ProvisionTokenAPI$execute$1.onSuccess(ProvisionTokenAPI.kt:34)

        at webservice.helpers.RetroFitCaller.responseSuccess(RetroFitCaller.java:116)

        at webservice.helpers.RetroFitCaller.onResponse(RetroFitCaller.java:85)

        at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1.lambda$onResponse$0$DefaultCallAdapterFactory$ExecutorCallbackCall$1(DefaultCallAdapterFactory.java:82)

        at retrofit2.-$$Lambda$DefaultCallAdapterFactory$ExecutorCallbackCall$1$3wC8FyV4pyjrzrYL5U0mlYiviZw.run(Unknown Source:6)

        at android.os.Handler.handleCallback(Handler.java:873)

        at android.os.Handler.dispatchMessage(Handler.java:99)

        at android.os.Looper.loop(Looper.java:193)

        at android.app.ActivityThread.main(ActivityThread.java:6702)

        at java.lang.reflect.Method.invoke(Native Method)

        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)

        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)

 

Thank You

Paul

2 REPLIES 2
API_Products
Visa Developer Support Specialist

Re: VisaPaymentSDKException: SDK session is unavailable.

Hey @paul_earnest,

 

I'm happy to help answer your question. I'll take a look and get back to you soon.  




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

paul_earnest
Regular Contributor

Re: VisaPaymentSDKException: SDK session is unavailable.

Dear @API_Products 

 

SDK Session unavailable scenario is a common issue thrown by the VISA SDK when SDK cannot establish connection with VISA. Also, when the storeProvisionedToken method takes longer time, the VISA SDK session unavailable is thrown. Its resolved by means of Retry mechanism. 

 

Thank You

Paul