Skip to content

Commit d4f8c73

Browse files
committed
added locationId for android
1 parent 311c27f commit d4f8c73

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

android/src/main/java/io/matix/RNSquarePosModule.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ public void startTransaction(int amount, String currencyCode, ReadableMap data,
112112
builder.restrictTendersTo(tenderTypes);
113113
}
114114

115+
if (data.hasKey("locationId")) {
116+
builder.enforceBusinessLocation(data.getString("locationId"));
117+
}
118+
115119
ChargeRequest request = builder.build();
116120

117121
try {
@@ -121,4 +125,4 @@ public void startTransaction(int amount, String currencyCode, ReadableMap data,
121125
errorCallback.invoke(e.toString());
122126
}
123127
}
124-
}
128+
}

0 commit comments

Comments
 (0)