Skip to content

Commit

Permalink
chore: Merge pull request #101 from eventOneHQ/master
Browse files Browse the repository at this point in the history
2.1.0-beta.5
  • Loading branch information
nprail authored Jun 7, 2022
2 parents c9411b0 + 5bf35c5 commit 7e1dc25
Show file tree
Hide file tree
Showing 3 changed files with 1,410 additions and 1,456 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ dependencies {
testImplementation "junit:junit:$junitVersion"
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
implementation "com.stripe:stripeterminal:2.9.0"
implementation "com.stripe:stripeterminal:2.10.0"
implementation "com.google.code.gson:gson:2.8.8"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.getcapacitor.JSObject;
import com.stripe.stripeterminal.external.models.Address;
import com.stripe.stripeterminal.external.models.DeviceType;
import com.stripe.stripeterminal.external.models.DiscoveryMethod;
import com.stripe.stripeterminal.external.models.Location;
import com.stripe.stripeterminal.external.models.PaymentIntent;
Expand Down Expand Up @@ -181,15 +182,15 @@ public static DiscoveryMethod translateDiscoveryMethod(Integer method) {

// translate the android device type enum to the JS device type enum
public static Integer translateDeviceTypeToJS(int type) {
if (type == 0) {
if (type == DeviceType.CHIPPER_2X.ordinal()) {
return 0;
} else if (type == 1) {
} else if (type == DeviceType.STRIPE_M2.ordinal()) {
return 3;
} else if (type == 3) {
} else if (type == DeviceType.VERIFONE_P400.ordinal()) {
return 1;
} else if (type == 4) {
} else if (type == DeviceType.WISEPAD_3.ordinal()) {
return 2;
} else if (type == 5) {
} else if (type == DeviceType.WISEPOS_E.ordinal()) {
return 4;
} else {
return 5;
Expand Down
Loading

0 comments on commit 7e1dc25

Please sign in to comment.