Skip to content

Commit

Permalink
Merge pull request #152 from sentry-demos/add-validate_inventory
Browse files Browse the repository at this point in the history
forcing /checkout to fail via `validate_inventory: "true"`
  • Loading branch information
ndmanvar authored Sep 27, 2024
2 parents f7ce3a9 + f584096 commit 6da8bd2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ private JSONObject buildJSONPostData(HashMap<String, StoreItem> selectedStoreIte
cart.put("quantities", quantities);
postBody.put("cart", cart);
postBody.put("form", new JSONObject());// This line currently mocks non existent form data
postBody.put("validate_inventory", "true");

} catch (JSONException e) {
ISpan span = Sentry.getSpan();
Expand Down

0 comments on commit 6da8bd2

Please sign in to comment.