sumup / sumup-android-sdk

Sample App for the SumUp Android SDK
Other
101 stars 29 forks source link

Loss of connectivity after payment request #111

Closed LocaFoxNick closed 3 years ago

LocaFoxNick commented 4 years ago

After performing a SumUpApi.checkout(), the SumUp activity is presented to the user, the SumUp device is detected, and payment is requested, at this point the activity is asking for the user to pay €10.00 (for example). If connectivity is permanently lost at this point, there is no recovery, no messages are received and I cannot find any mention of a timeout in the docs.

Is there a way I can set a timeout?

Code used to invoke:

SumUpPayment.Builder paymentBuilder = SumUpPayment.builder();
paymentBuilder.total(transactionPayment.getAmount());
paymentBuilder.currency(SumUpPayment.Currency.EUR);
paymentBuilder.foreignTransactionId(transactionPayment.getTransactionPaymentId());

SumUpApi.checkout(activity, paymentBuilder.build(), SUM_UP_PAYMENT_REQUEST)

Using SDK v3.2.2. Android Pie (9, sdk 28).

Any help would be appreciated.