Revise payment tutorials, add/remove screenshots

This commit is contained in:
Dennis Dawson
2025-04-24 10:49:20 -07:00
parent d89f9fb2f0
commit 5bb552db12
108 changed files with 4940 additions and 3707 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,12 @@
---
html: send-payments-using-javascript.html
parent: javascript.html
top_nav_grouping: Article Types
seo:
description: Send XRP and Issued Currencies on the XRPL.
labels:
- Accounts
- Transactions
- XRP
- Issued Currencies
metadata:
indexPage: true
---
@@ -9,5 +14,7 @@ metadata:
Send XRP and issued currency on the XRP Ledger using JavaScript.
Download and expand the [Payment Modular Tutorial Samples](/_code-samples/modular-tutorials/payment-modular-tutorials.zip) archive.
{% child-pages /%}

File diff suppressed because it is too large Load Diff

View File

@@ -17,7 +17,7 @@ Once an account receives an MPT, it can send the MPT to another account, provide
The Send MPT utility <!-- embedded below -->lets you create an account, authorize it to receive a specific MPT issuance, then send it the authorized MPT from an issuer or holder account. (You can issue an MPT using the [MPT Generator](../../../use-cases/tokenization/creating-an-asset-backed-multi-purpose-token.md) utility.)
![MPT Sender Utility](../../../img/tut-send-mpt-0-empty-form.png)
[![MPT Sender Utility](../../../img/mt-send-mpt-0-empty-form.png)](../../../img/mt-send-mpt-0-empty-form.png)
You can download a [standalone version of the MPT Sender](../../../../_code-samples/mpt-sender/send-mpt.zip) as sample code<!--, or use the embedded form that follows-->.
@@ -31,13 +31,13 @@ To get the accounts:
2. Choose your ledger instance (**Devnet** or **Testnet**).
3. If you used the MPT Generator:
1. Paste the gathered info in the **Result** field.
![Gathered information in Result field](../../../img/tut-send-mpt-1-gathered-info.png)
[![Gathered information in Result field](../../../img/mt-send-mpt-1-gathered-info.png)](../../../img/mt-send-mpt-1-gathered-info.png)
2. Cut and paste the MPT Issuance ID to the **MPT Issuance ID** field.
3. Click **Distribute Account Info** to populate the **Account 1** fields.<br/><br/>
(If you did not use the MPT Generator, enter the **Account 1 Name**, **Account 1 Address**, **Account 1 Seed**, and **MPT Issuance ID** in the corresponding fields.)
4. Click **Get New Account 2**.
5. Optionally, add the **Account 2 Name**, an arbitrary human-readable name that helps to differentiate the accounts.
![Get New Account 2](../../../img/tut-send-mpt-2-account-2.png)
[![Get New Account 2](../../../img/mt-send-mpt-2-account-2.png)](../../../img/mt-send-mpt-2-account-2.png)
## Authorize MPT
@@ -48,7 +48,7 @@ To authorize Account 2 to accept MPTs:
1. Click the **Account 2** radio button.
2. Enter an **Amount**, the maximum number of MPTs the account will accept.
2. Click **Authorize MPTs**.
![Authorize MPTs](../../../img/tut-send-mpt-2-authorize-mpt.png)
[![Authorize MPTs](../../../img/mt-send-mpt-2-authorize-mpt.png)](../../../img/mt-send-mpt-2-authorize-mpt.png)
## Send MPT
@@ -59,7 +59,7 @@ To send an MPT:
2. Enter an **Amount** of MPTs to send.
3. Enter the **Destination** (likely the value in the **Account 2 Address** field, but it can be any account on the same ledger instance).
4. Click **Send MPT**.
![Send MPTs](../../../img/tut-send-mpt-3-send-mpt.png)
[![Send MPTs](../../../img/mt-send-mpt-3-send-mpt.png)](../../../img/mt-send-mpt-3-send-mpt.png)
## Get MPTs
@@ -67,7 +67,7 @@ To verify receipt of the MPTs:
1. Click the **Account 2** radio button.
2. Click **Get MPTs**.
![Get MPTs](../../../img/tut-send-mpt-4-get-mpts.png)
[![Get MPTs](../../../img/mt-send-mpt-4-get-mpts.png)](../../../img/mt-send-mpt-4-get-mpts.png)
# Code Walkthrough