Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request #10 in MINT/java-checkout from MINT-2198-update-cr…
Browse files Browse the repository at this point in the history
…eate-example to v3.0

* commit '3a733c2c085fdbe85dd6082ea1969bb1f4597ec0':
  Update create example to show how to get order ID
  • Loading branch information
Christer Gustavsson committed Jun 11, 2015
2 parents 6baaa41 + 3a733c2 commit f0f45ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/examples/Create.java
Expand Up @@ -129,8 +129,11 @@ public static void main(final String[] args)

try {
order.create(data);
order.fetch();

System.out.println(order.getLocation());
String orderID = (String) order.get("id");

System.out.println(orderID);
} catch (ErrorResponseException e) {
JSONObject json = e.getJson();

Expand Down

0 comments on commit f0f45ac

Please sign in to comment.