Skip to content

Commit 6da8bd2

Browse files
authored
Merge pull request #152 from sentry-demos/add-validate_inventory
forcing /checkout to fail via `validate_inventory: "true"`
2 parents f7ce3a9 + f584096 commit 6da8bd2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/com/example/vu/android/empowerplant/MainFragment.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ private JSONObject buildJSONPostData(HashMap<String, StoreItem> selectedStoreIte
396396
cart.put("quantities", quantities);
397397
postBody.put("cart", cart);
398398
postBody.put("form", new JSONObject());// This line currently mocks non existent form data
399+
postBody.put("validate_inventory", "true");
399400

400401
} catch (JSONException e) {
401402
ISpan span = Sentry.getSpan();

0 commit comments

Comments
 (0)