From 64a71e78a44e5d7ac8a03a9f76862805c8e8ef1b Mon Sep 17 00:00:00 2001
From: Bri <92327786+briwylde08@users.noreply.github.com>
Date: Fri, 18 Aug 2023 11:42:28 -0600
Subject: [PATCH] sep24 tweaks
---
.../anchor-integration/sep24.mdx | 8 ++++++--
.../anchor-integration/setup.mdx | 4 +---
static/assets/sep24_transfers.png | Bin 0 -> 10060 bytes
3 files changed, 7 insertions(+), 5 deletions(-)
create mode 100644 static/assets/sep24_transfers.png
diff --git a/docs/building-apps/example-application-tutorial/anchor-integration/sep24.mdx b/docs/building-apps/example-application-tutorial/anchor-integration/sep24.mdx
index 08decb0c9..d06cf5661 100644
--- a/docs/building-apps/example-application-tutorial/anchor-integration/sep24.mdx
+++ b/docs/building-apps/example-application-tutorial/anchor-integration/sep24.mdx
@@ -3,7 +3,9 @@ title: "SEP-24: Hosted Deposit and Withdrawal"
sidebar_position: 40
---
-SEP-24 provides a standard way for wallets and anchors to interact by having the user open a webview hosted by an anchor to collect and handle KYC information. In this integration, a user's KYC information is entirely gathered and handled by the anchor. For the most part, after the anchor's webview has opened, BasicPay will have little knowledge about what's going on.
+import sep24_transfers from "/assets/sep24_transfers.png";
+
+SEP-24 provides a standard way for wallets and anchors to interact by having the user open a webview hosted by an anchor to collect and handle KYC information. In this integration, a user's KYC information is gathered and handled entirely by the anchor. For the most part, after the anchor's webview has opened, BasicPay will have little knowledge about what's going on.
:::info
@@ -29,6 +31,8 @@ export async function getTransferServerSep24(domain) {
Our application will request the `/info` endpoint from the anchor's transfer server to understand the supported transfer methods (deposit, withdraw) and available endpoints, as well as additional features that may be available during transfers.
+
+
```js title=/src/lib/stellar/sep24.js
// Fetches and returns basic information about what the SEP-24 transfer server supports.
export async function getSep24Info(domain) {
@@ -173,7 +177,7 @@ Since BasicPay is an entirely client-side application, we can't provide a callba
## Complete transfer
-Once the user is finished with the interactive window from the anchor, they'll be brought back to BasicPay. We store the details of the transfer in the `transfersStore` store (Remember, this is just so we can track which anchors to query for transfers later on.)
+Once the user is finished with the interactive window from the anchor, they'll be brought back to BasicPay. We store the details of the transfer in the `transfersStore` store (remember, this is just so we can track which anchors to query for transfers later on).
```html title=/src/routes/dashboard/transfers/+page.svelte