import { AmountJson, Amounts, parsePaytoUri } from "@gnu-taler/taler-util"; import { Fragment, h, VNode } from "preact"; import { BankDetailsByPaytoType } from "../components/BankDetailsByPaytoType"; import { QR } from "../components/QR"; import { ButtonDestructive, WarningBox } from "../components/styled"; import { amountToString } from "../utils"; export interface Props { reservePub: string; payto: string; exchangeBaseUrl: string; amount: AmountJson; onBack: () => void; } export function ReserveCreated({ reservePub, payto, onBack, exchangeBaseUrl, amount, }: Props): VNode { const paytoURI = parsePaytoUri(payto); // const url = new URL(paytoURI?.targetPath); if (!paytoURI) { return
To complete the process you need to wire{" "} {amountToString(amount)} to the exchange bank account
Alternative, you can also scan this QR code or open{" "} this link if you have a banking app installed that supports RFC 8905