Wearing Hope
Cart 0
home contact blog
engagement rings rings earrings necklaces + bracelets worn + made under $100
our story our mission how to help pricing information returns & post-purchase care
Cart 0
home shop engagement rings rings earrings necklaces + bracelets worn + made under $100 contactblog info our story our mission how to help pricing information returns & post-purchase care
Wearing Hope
Creating symbols of hope in Christ's name.
necklaces + bracelets Genuine Stone Bead Necklace
PreviousGold-Glass Necklace NextBee Necklace

Genuine Stone Bead Necklace

B25C7A95-8B8C-473E-9AE2-5D9D3FB87528_1_201_a.jpeg
539DB74E-3507-4948-B7DF-664FEF53D421_1_201_a.jpeg
47F1CA4E-0C48-45D9-9887-E45A7B8A669F_1_201_a.jpeg
DBD8DB77-62A6-41B9-8174-138C2BF032CF_1_201_a.jpeg
9CECA58E-365B-4C61-9BF2-2DC52C5BB041_1_201_a.jpeg
B25C7A95-8B8C-473E-9AE2-5D9D3FB87528_1_201_a.jpeg
539DB74E-3507-4948-B7DF-664FEF53D421_1_201_a.jpeg
47F1CA4E-0C48-45D9-9887-E45A7B8A669F_1_201_a.jpeg
DBD8DB77-62A6-41B9-8174-138C2BF032CF_1_201_a.jpeg
9CECA58E-365B-4C61-9BF2-2DC52C5BB041_1_201_a.jpeg

Genuine Stone Bead Necklace

$82.00

A twist on the popular bead necklaces. Made with all natural stones and 18” long. Stones include aquamarine, peridot, lapis, and fresh water pearls. Made with a stretchy elastic for easy styling.

Add To Cart
Facebook0 Twitter Pinterest0
wearinghopecrafts@gmail.com
Hours
Orders
Shipping + Handling Terms and Conditions
Social
Instagram Facebook
 
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;
    }
}