HPP Routertestnet demo

A somaro plan paid from HPP account credit

A demonstration for the router’s team (hpp-router#332).

What this shows

A person keeps credit at their HPP account. somaro sells a plan for a price in CHIP, asked and paid over x402. These pages show what the router’s page does in between; the line at the foot of each opens to what its server did.

Start from here

To start from here and not from somaro’s page, give a passport that has a confirmed email address on dev.somaro.ai.

Demonstration: what the server did
1. somaro’s pay page links here
→ /pay?resource=<the plan’s payment address>&return=<somaro’s page>
2. POST the resource with no payment
→ 402 with the price, the plan and its dates

The page shows them beside the account’s credit.

3. credit short?
→ to the store, with /pay?… as the way back

After the top-up the same address is loaded again. No state was kept for the detour.

4. the person confirms
→ reserve the credit and write the order, in one write
5. sign CHIP’s transfer authorization and POST the resource again
→ 200 with the plan

somaro’s facilitator sends the transaction; somaro reads the chain itself before it gives the plan.

6. order paid; send the person back
→ somaro’s page shows the plan