mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-13 19:06:24 +00:00
Update 15.md
This commit is contained in:
parent
e5f1b3f5db
commit
6c16f8e2c9
12
15.md
12
15.md
@ -147,7 +147,7 @@ Fields that are not self-explanatory:
|
|||||||
|
|
||||||
## Checkout events
|
## Checkout events
|
||||||
|
|
||||||
All checkout events are sent as JSON strings using [NIP-17](17.md).
|
All checkout events are signed then sent as [NIP-17](17.md) Private Direct Messages between `customer` and `merchant`. Every checkout event contains the event's details as JSON in the `content` field.
|
||||||
|
|
||||||
The `merchant` and the `customer` can exchange JSON messages that represent different actions. Each `JSON` message `MUST` have a `type` field indicating the what the JSON represents. Possible types:
|
The `merchant` and the `customer` can exchange JSON messages that represent different actions. Each `JSON` message `MUST` have a `type` field indicating the what the JSON represents. Possible types:
|
||||||
|
|
||||||
@ -159,7 +159,7 @@ The `merchant` and the `customer` can exchange JSON messages that represent diff
|
|||||||
|
|
||||||
### Event `30030` - Step 1: `customer` order
|
### Event `30030` - Step 1: `customer` order
|
||||||
|
|
||||||
The below JSON goes in content of a kind: `30019` event.
|
The below JSON goes in `content` of a kind: `30019` event. The event is signed, then sent to `merchant` in a [NIP-17](17.md) Private Direct Message.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@ -189,9 +189,9 @@ _Open_: is `contact.nostr` required?
|
|||||||
|
|
||||||
### Event `30031` - Step 2: `merchant` request payment
|
### Event `30031` - Step 2: `merchant` request payment
|
||||||
|
|
||||||
Sent back from the merchant for payment. Any payment option is valid that the merchant can check.
|
Sent from the `merchant` to the `customer` for payment. Any payment option is valid that the merchant can check.
|
||||||
|
|
||||||
The below JSON goes in `content` of a kind: `30020` event.
|
The below JSON goes in `content` of a kind: `30020` event. The event is signed, then sent to the `customer` in a [NIP-17](17.md) Private Direct Message.
|
||||||
|
|
||||||
`payment_options`/`type` include:
|
`payment_options`/`type` include:
|
||||||
|
|
||||||
@ -226,7 +226,7 @@ The below JSON goes in `content` of a kind: `30020` event.
|
|||||||
|
|
||||||
Once payment has been received and processed.
|
Once payment has been received and processed.
|
||||||
|
|
||||||
The below JSON goes in `content` of a kind: `30021` event.
|
The below JSON goes in `content` of a kind: `30021` event. The event is signed, then sent to the `customer` in a [NIP-17](17.md) Private Direct Message.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@ -242,7 +242,7 @@ The below JSON goes in `content` of a kind: `30021` event.
|
|||||||
|
|
||||||
Once order has been shipped.
|
Once order has been shipped.
|
||||||
|
|
||||||
The below JSON goes in `content` of a kind: `30021` event.
|
The below JSON goes in `content` of a kind: `30021` event. The event is signed, then sent to the `customer` in a [NIP-17](17.md) Private Direct Message.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user