Restructure examples, add payment API support and example