NIP-15-Use-Nip-17.md

Replaced NIP-04 (deprecated) with NIP-17: Private Direct Messages
This commit is contained in:
Acea Spades 2024-08-10 01:11:10 -07:00 committed by GitHub
parent 744bce8fca
commit 244e733637
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

10
15.md
View File

@ -139,7 +139,7 @@ Fields that are not self-explanatory:
## Checkout events ## Checkout events
All checkout events are sent as JSON strings using [NIP-04](04.md). All checkout events are sent as JSON strings using [NIP-17](17.md).
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:
@ -150,7 +150,7 @@ The `merchant` and the `customer` can exchange JSON messages that represent diff
| 2 | Merchant | Order Status Update | | 2 | Merchant | Order Status Update |
### Step 1: `customer` order (event) ### Step 1: `customer` order (event)
The below JSON goes in content of [NIP-04](04.md). The below JSON goes in content of [NIP-17](17.md).
```json ```json
{ {
@ -182,7 +182,7 @@ _Open_: is `contact.nostr` required?
Sent back from the merchant for payment. Any payment option is valid that the merchant can check. Sent back from the merchant for payment. Any payment option is valid that the merchant can check.
The below JSON goes in `content` of [NIP-04](04.md). The below JSON goes in `content` of [NIP-17](17.md).
`payment_options`/`type` include: `payment_options`/`type` include:
@ -217,7 +217,7 @@ The below JSON goes in `content` of [NIP-04](04.md).
Once payment has been received and processed. Once payment has been received and processed.
The below JSON goes in `content` of [NIP-04](04.md). The below JSON goes in `content` of [NIP-17](17.md).
```json ```json
{ {
@ -331,7 +331,7 @@ Another thing that can happen is - if bids happen very close to the end date of
## Customer support events ## Customer support events
Customer support is handled over whatever communication method was specified. If communicating via nostr, [NIP-04](04.md) is used. Customer support is handled over whatever communication method was specified. If communicating via nostr, [NIP-17](17.md) is used.
## Additional ## Additional