# `MPP.Demo.Method`
[🔗](https://github.com/ZenHive/mpp/blob/v0.10.0/lib/mpp/demo/method.ex#L1)

Demo payment method — accepts a magic token for local testing.

Used by `mix mpp.demo` to demonstrate the full 402 handshake without
requiring real payment credentials. The only accepted token is `"demo-token"`.

## Credential Payload

The credential `payload` map must contain:

  * `"token"` — (required) must be `"demo-token"`
  * `"externalId"` — (optional) caller-provided correlation ID, echoed in receipt

---

*Consult [api-reference.md](api-reference.md) for complete listing*
