Since Emulator cannot work with credit card payment, and only able to test cc transaction within devkit, is there anywhere I can find out the JSON structure for Order object in Android SDK?
Since Emulator cannot work with credit card payment, and only able to test cc transaction within devkit, is there anywhere I can find out the JSON structure for Order object in Android SDK?
You can look at the order class in the sdk. You can also create an order via the REST API and retrieve it via the REST API to see what the json looks like. If you need to add a payment to the order you can use the ecomm API.
I understand. Your question was is there a way you can find the JSON format for an order. An order is an order is an order. The structure of the order is the same whether you created it via the REST API and retrieve it via the REST API, or if you create it on the device. I am not suggesting you call the REST API from your app. I'm suggesting you use the rest API to see what the format is. Alternatively, just look at the native SDK objects.
2 People are following this question.