Comments (12)
Does this only happen on app upgrades or does it happen on a completely fresh install as well?
from stripe-terminal-android.
Can I also see how you're calling initTerminal
?
from stripe-terminal-android.
it's fail always doesn't matter app updated or intsalled after uninstall
from stripe-terminal-android.
Terminal.initTerminal(application.getApplicationContext(), LogLevel.VERBOSE, new TokenProvider(), terminalEventListener);
from stripe-terminal-android.
global variable:
private static final TerminalEventListener terminalEventListener = new TerminalEventListener();
from stripe-terminal-android.
package au.com.ticketbooth.rfid.android.service.stripe;
import com.google.common.collect.Lists;
import com.stripe.stripeterminal.callable.TerminalListener;
import com.stripe.stripeterminal.model.external.*;
import java.util.List;
import au.com.ticketbooth.rfid.android.mvp.presenter.settings.StripeReaderConnectPresenter;
import au.com.ticketbooth.rfid.android.ui.activities.settings.stripe.StripeReaderConnectActivity;
/**
-
The {@code TerminalEventListener} implements the {@link TerminalListener} interface and will
-
forward along any events to other parts of the app that register for updates.
*/
public class TerminalEventListener implements TerminalListener {private static List listeners = Lists.newArrayList();
public static ConnectionStatus currentConnectionStatus = ConnectionStatus.NOT_CONNECTED;
public static PaymentStatus currentPaymentStatus = PaymentStatus.NOT_READY;@OverRide
public void onReportReaderEvent(ReaderEvent event) {
for (TerminalListener listener : listeners) {
listener.onReportReaderEvent(event);
}
}@OverRide
public void onReportLowBatteryWarning() {
for (TerminalListener listener : listeners) {
listener.onReportLowBatteryWarning();
}
}@OverRide
public void onUnexpectedReaderDisconnect(Reader reader) {
StripeReaderConnectPresenter.READER_CONNECTED = false;
for (TerminalListener listener : listeners) {
listener.onUnexpectedReaderDisconnect(reader);
}
}@OverRide
public void onConnectionStatusChange(ConnectionStatus status) {
currentConnectionStatus = status;
if(currentConnectionStatus != ConnectionStatus.CONNECTED) {
StripeReaderConnectPresenter.READER_CONNECTED = false;
}
for (TerminalListener listener : listeners) {
listener.onConnectionStatusChange(status);
}
}@OverRide
public void onPaymentStatusChange(PaymentStatus status) {
currentPaymentStatus = status;
for (TerminalListener listener : listeners) {
listener.onPaymentStatusChange(status);
}
}/**
- @return the current ConnectionStatus
*/
public static ConnectionStatus getCurrentConnectionStatus() {
return currentConnectionStatus;
}
/**
- @return the current PaymentStatus
*/
public static PaymentStatus getCurrentPaymentStatus() {
return currentPaymentStatus;
}
}
- @return the current ConnectionStatus
from stripe-terminal-android.
this worked perfect before updating to the rc-1
from stripe-terminal-android.
Hmm, so the major new thing with Rc1 is that we're creating a Room database to store pending transactions and other traces to make sure that we handle any edge cases when the app is unexpectedly closed / re-opened -
Does your app meet the standard requirements for a room database?
from stripe-terminal-android.
@chander-stripe @anton8900 can we make sure we're checking this out, we're currently running dbflow in our application.
Is there any issues with us staying with beta for production until this is resolved?
from stripe-terminal-android.
@chander-stripe so we tried test application on phone and its working so the phon is 100% compatible. There must be an incompatibility with our app.
What's the standard requirements for a room database here? I did a quick google search but couldn't find any reference to a definitive list of requirements. I'm guessing it could be due to out other ORM (dbflow) but tonnes of other applications use dbflow so it would seem strange that we'd strike all those from the table.
from stripe-terminal-android.
have migrated app to the androidx and error disappear
from stripe-terminal-android.
Great!
from stripe-terminal-android.
Related Issues (20)
- Failed to generate key pair HOT 6
- Canβt read card info and collectPaymentMethod time out HOT 3
- My Android device cannot reconnect to the card reader after running for a long time HOT 18
- "KeyStoreException: the master key exists but is unusable" while trying to connect to the Tap to Pay on specific Samsung devices HOT 2
- ProGuard Rules Issues HOT 6
- Add callback to know when a card is inserted or removed outside collect state HOT 7
- Android Tap to Pay screen stuck in "Done" state HOT 2
- Stripe Contactless Activity doesn't showing the tap to pay spot and amount while using latest sdk version 3.4.0 HOT 2
- Collect payment method for setup intent doesn't update its `status` HOT 12
- READER_MISSING_ENCRYPTION_KEYS Error still coming in SDK 3.4.0 HOT 4
- Stripe M2 reader disconnects from USB if another device tries to connect to it over Bluetooth HOT 1
- Tap to Pay HOT 2
- Card reader overheating and crashing HOT 6
- Setting to turn off Play audible tones on contactless payment
- Tap to Pay- Crash at initTerminal when used along with Retrofit HOT 10
- Warning: com.google.android.gms:play-services-safetynet HOT 1
- Failed to decrypt an offline entity. HOT 4
- Tap to pay android via Stripe dashboard app failing to accept interac payments HOT 12
- Stop Discovery not working after reader disconnect HOT 3
- Question about HTTP timeout HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stripe-terminal-android.