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

Strong As A Mother Pouch - Customization Optional

$13.00Price

Strong as a mother pouch 💪🏻

This pouch is 8x5 inches and is perfect for makeup, pencils, notes, and so much more.

Customization optional. I can add any name or text. Please feel free to ask any questions.

All pouches come with a free gift depending on what I have in stock. Usually stickers or bookmarks.

Color Disclaimer: Actual colors may vary. This is due to the fact that every camera and computer monitor displays colors differently. We try our best to capture the true color of each item to reflect the product accurately.

0/100
Quantity
  • Facebook Social Icon
  • YouTube Social  Icon
  • Instagram

Newsletter Sign Up

Never miss an important update! Dont worry I wont spam! I generally send 1-2 Emails per month.

Name

Email

bottom of page