Skip to content

Commit

Permalink
no payment flow for those
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Aug 23, 2024
1 parent 2a2feb6 commit 0051447
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 213 deletions.
71 changes: 0 additions & 71 deletions docs/payments/donations/link.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,74 +297,3 @@ Payments below USD $1,000 are designated as "confirmed" after a single block con
In contrast, payments valued at USD $1,000 or above receive the "finalized" status, which necessitates varying block confirmations depending on the specific blockchain in use:

For an in-depth overview, explore the [extended validation section](/docs/payments/validation#extended-validation).

## Payment flow

### Successful payment

```mermaid
sequenceDiagram
participant App as Your App
participant Widget
participant Wallet
participant Blockchain
participant DePay as DePay
App->>Widget: open widget
Widget->>DePay: request configuration
DePay-->>App: request dynamic configuration (optional)
App-->>DePay: respond dynamic configuration (optional)
DePay->>Widget: provide configuration
Widget->>Widget: show payment options
Widget->>Widget: user selects option
Widget->>Widget: user clicks "pay"
Widget->>DePay: store attempt
DePay-->>App: send "attempt" event (optional)
DePay->>Widget: confirm attempt
Widget->>Wallet: sign transaction
Wallet->>Blockchain: submit transaction
Wallet->>Widget: return transaction
Widget->>DePay: store transaction
DePay-->>App: send "processing" event (optional)
DePay->>Widget: confirm transaction
loop
Widget->>Blockchain: check status
Blockchain->>Widget: return status
end
loop
DePay->>Blockchain: validate payment
Blockchain->>DePay: return validation
end
Widget->>Blockchain: check status
Blockchain->>Widget: transaction succeeded
DePay->>Blockchain: validate payment
Blockchain->>DePay: payment succeeded
loop
DePay-->>App: sends callback (optional)
App-->>DePay: confirms callback receipt (optional)
end
DePay-->>App: send "succeeded" event (optional)
DePay->>Widget: release user
Widget->>App: release user
```

### Failed payment

Only differs to a [successful payment](#successful-payment) in regards of the validation result and everything happening after.

Ultimately instructing the user to retry the payment.

```mermaid
sequenceDiagram
participant App as Your App
participant Widget
participant Wallet
participant Blockchain
participant DePay as DePay
Widget->>Blockchain: check status
Blockchain->>Widget: transaction failed
DePay->>Blockchain: validate payment
Blockchain->>DePay: payment failed
DePay-->>App: send "failed" event (optional)
DePay->>Widget: release user
Widget->>Widget: ask user to retry payment
```
71 changes: 0 additions & 71 deletions docs/payments/integrate/link.md
Original file line number Diff line number Diff line change
Expand Up @@ -486,74 +486,3 @@ Payments below USD $1,000 are designated as "confirmed" after a single block con
In contrast, payments valued at USD $1,000 or above receive the "finalized" status, which necessitates varying block confirmations depending on the specific blockchain in use:

For an in-depth overview, explore the [extended validation section](/docs/payments/validation#extended-validation).

## Payment flow

### Successful payment

```mermaid
sequenceDiagram
participant App as Your App
participant Widget
participant Wallet
participant Blockchain
participant DePay as DePay
App->>Widget: open widget
Widget->>DePay: request configuration
DePay-->>App: request dynamic configuration (optional)
App-->>DePay: respond dynamic configuration (optional)
DePay->>Widget: provide configuration
Widget->>Widget: show payment options
Widget->>Widget: user selects option
Widget->>Widget: user clicks "pay"
Widget->>DePay: store attempt
DePay-->>App: send "attempt" event (optional)
DePay->>Widget: confirm attempt
Widget->>Wallet: sign transaction
Wallet->>Blockchain: submit transaction
Wallet->>Widget: return transaction
Widget->>DePay: store transaction
DePay-->>App: send "processing" event (optional)
DePay->>Widget: confirm transaction
loop
Widget->>Blockchain: check status
Blockchain->>Widget: return status
end
loop
DePay->>Blockchain: validate payment
Blockchain->>DePay: return validation
end
Widget->>Blockchain: check status
Blockchain->>Widget: transaction succeeded
DePay->>Blockchain: validate payment
Blockchain->>DePay: payment succeeded
loop
DePay-->>App: sends callback (optional)
App-->>DePay: confirms callback receipt (optional)
end
DePay-->>App: send "succeeded" event (optional)
DePay->>Widget: release user
Widget->>App: release user
```

### Failed payment

Only differs to a [successful payment](#successful-payment) in regards of the validation result and everything happening after.

Ultimately instructing the user to retry the payment.

```mermaid
sequenceDiagram
participant App as Your App
participant Widget
participant Wallet
participant Blockchain
participant DePay as DePay
Widget->>Blockchain: check status
Blockchain->>Widget: transaction failed
DePay->>Blockchain: validate payment
Blockchain->>DePay: payment failed
DePay-->>App: send "failed" event (optional)
DePay->>Widget: release user
Widget->>Widget: ask user to retry payment
```
71 changes: 0 additions & 71 deletions docs/payments/tips/link.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,74 +291,3 @@ Payments below USD $1,000 are designated as "confirmed" after a single block con
In contrast, payments valued at USD $1,000 or above receive the "finalized" status, which necessitates varying block confirmations depending on the specific blockchain in use:

For an in-depth overview, explore the [extended validation section](/docs/payments/validation#extended-validation).

## Payment flow

### Successful payment

```mermaid
sequenceDiagram
participant App as Your App
participant Widget
participant Wallet
participant Blockchain
participant DePay as DePay
App->>Widget: open widget
Widget->>DePay: request configuration
DePay-->>App: request dynamic configuration (optional)
App-->>DePay: respond dynamic configuration (optional)
DePay->>Widget: provide configuration
Widget->>Widget: show payment options
Widget->>Widget: user selects option
Widget->>Widget: user clicks "pay"
Widget->>DePay: store attempt
DePay-->>App: send "attempt" event (optional)
DePay->>Widget: confirm attempt
Widget->>Wallet: sign transaction
Wallet->>Blockchain: submit transaction
Wallet->>Widget: return transaction
Widget->>DePay: store transaction
DePay-->>App: send "processing" event (optional)
DePay->>Widget: confirm transaction
loop
Widget->>Blockchain: check status
Blockchain->>Widget: return status
end
loop
DePay->>Blockchain: validate payment
Blockchain->>DePay: return validation
end
Widget->>Blockchain: check status
Blockchain->>Widget: transaction succeeded
DePay->>Blockchain: validate payment
Blockchain->>DePay: payment succeeded
loop
DePay-->>App: sends callback (optional)
App-->>DePay: confirms callback receipt (optional)
end
DePay-->>App: send "succeeded" event (optional)
DePay->>Widget: release user
Widget->>App: release user
```

### Failed payment

Only differs to a [successful payment](#successful-payment) in regards of the validation result and everything happening after.

Ultimately instructing the user to retry the payment.

```mermaid
sequenceDiagram
participant App as Your App
participant Widget
participant Wallet
participant Blockchain
participant DePay as DePay
Widget->>Blockchain: check status
Blockchain->>Widget: transaction failed
DePay->>Blockchain: validate payment
Blockchain->>DePay: payment failed
DePay-->>App: send "failed" event (optional)
DePay->>Widget: release user
Widget->>Widget: ask user to retry payment
```

0 comments on commit 0051447

Please sign in to comment.