# Requires: JSS running on localhost:4443 with --pay --pay-cost 10
BASE="http://localhost:4443"
echo"=== Setting up payment-gated article demo ==="
# 1. Create the premium article
echo"Creating premium article..."
curl -s -X PUT "$BASE/premium/article.jsonld" \
-H "Content-Type: application/ld+json" \
-d '{
"@context": "https://schema.org",
"@type": "Article",
"headline": "The Future of Web Payments",
"author": "Melvin Carvalho",
"datePublished": "2026-03-26",
"articleBody": "This premium article explains how HTTP 402 enables native web payments. The decentralised web finally has a business model. No Stripe. No PayPal. No app store taking 30%. Just HTTP status codes and Lightning invoices."
}'
# 2. Create the ACL with PaymentCondition
echo"Creating payment-gated ACL..."
curl -s -X PUT "$BASE/premium/article.jsonld.acl" \