import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.*; @RestController public class CheckoutController { @GetMapping("/checkout") public Map checkout( @RequestParam String products, @RequestParam(required = false) String coupon) { // Parse products Map productQuantities = new HashMap<>(); for (String productEntry : products.split(",")) { String[] parts = productEntry.split(":"); productQuantities.put( parts[0], // Product ID Integer.parseInt(parts[1]) // Quantity ); } // Build result Map result = new HashMap<>(); result.put("products", productQuantities); result.put("coupon", coupon != null ? coupon : "No coupon applied"); return result; } }
top of page
Product Page: Stores_Product_Widget

365 days of mastering your fretboard broken down into easy 1 minute per day checklist! You set the speed for this guide book that breaks all the rules in traditional music manuals by making it fun, easy, and something you WANT to do every day! Great alternative to spending time on social media, at the end of the year you will know all 12 Frets- works great with FretMaps Removable Vinyl Sticker System too!

 

Great for all ages, wonderful gift idea for music lovers & students!

FretMaps Coloring Book 365 Guide

$30.00Price
Quantity
Expected to ship by end of June

    The Practical Bohemian Blog, Free song download, & Aja Created Newsletters 

    bottom of page