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
private fun openSumUpLogin(viewState: SumUpPaymentSingleViewState.LaunchSumUpPayment) {
val sumUpLogin = SumUpLogin
.builder(viewState.affiliateKey)
.accessToken(viewState.accessToken)
.build()
SumUpAPI.openLoginActivity(requireActivity(), sumUpLogin, REQUEST_CODE_LOGIN)
}
private fun checkoutSumUpPayment(viewState: SumUpPaymentSingleViewState.LaunchSumUpPayment) {
val payment = SumUpPayment.builder()
.total(viewState.amount)
.currency(donationCurrency.getSumUpCurrency())
.skipSuccessScreen()
.title(viewState.screenTitle)
.foreignTransactionId(viewState.randomId)
.build()
SumUpAPI.checkout(requireActivity(), payment, REQUEST_CODE_PAYMENT)
}
private fun launchSumUpCheckout(viewState: SumUpPaymentSingleViewState.LaunchSumUpPayment) {
if (SumUpAPI.isLoggedIn()) {
checkoutSumUpPayment(viewState)
} else {
openSumUpLogin(viewState)
}
}
I am using the above code to checkout the sum up sdk and refreshing token every time when the token "expires_in": 3600.
After doing the first transaction successfully if I try doing the same an hour after, I am getting error toast with Tu sesión ha caducado. Por favor vuelve a iniciar sesión. which translate too Your session has expired. Please login in again.
❓ Question
What is causing this problem?
Why is the notification showing french locale even though device is set to locale Uk?
Is there any way to check token expiry by expiring the current token from console or through api?
The text was updated successfully, but these errors were encountered:
it seems to be the case for me as well, although I did try to maintain the login session. This login session maintain was done by checking the logged status every now and then, and login again by token if needed.
Hi,
I am using SDK version
3.3.1
.I am using the above code to checkout the
sum up sdk
and refreshing token every time when the token"expires_in": 3600.
After doing the first transaction successfully if I try doing the same an hour after, I am getting error toast with
Tu sesión ha caducado. Por favor vuelve a iniciar sesión.
which translate tooYour session has expired. Please login in again.
❓ Question
french
locale even though device is set to localeUk
?The text was updated successfully, but these errors were encountered: