Skip to content

Commit cc881a8

Browse files
gregfromstlclaude
andcommitted
fix: update checkout references to payment in PaymentLinkForm
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent fd0aa2d commit cc881a8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

apps/dashboard/src/app/pay/components/client/PaymentLinkForm.client.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export function PaymentLinkForm({ client }: { client: ThirdwebClient }) {
9393
amount,
9494
);
9595

96-
// Build checkout URL
96+
// Build payment URL
9797
const params = new URLSearchParams({
9898
chainId: inputs.chainId.toString(),
9999
recipientAddress: inputs.recipientAddress,
@@ -112,13 +112,13 @@ export function PaymentLinkForm({ client }: { client: ThirdwebClient }) {
112112
params.set("image", imageUri);
113113
}
114114

115-
const checkoutUrl = `${window.location.origin}/checkout?${params.toString()}`;
115+
const paymentUrl = `${window.location.origin}/pay?${params.toString()}`;
116116

117117
// Copy to clipboard
118-
await navigator.clipboard.writeText(checkoutUrl);
118+
await navigator.clipboard.writeText(paymentUrl);
119119

120120
// Show success toast
121-
toast.success("Checkout link copied to clipboard.");
121+
toast.success("Payment link copied to clipboard.");
122122
} catch (err) {
123123
setError(err instanceof Error ? err.message : "An error occurred");
124124
} finally {
@@ -169,7 +169,7 @@ export function PaymentLinkForm({ client }: { client: ThirdwebClient }) {
169169
params.set("image", imageUri);
170170
}
171171

172-
window.open(`/checkout?${params.toString()}`, "_blank");
172+
window.open(`/pay?${params.toString()}`, "_blank");
173173
} catch (err) {
174174
toast.error(err instanceof Error ? err.message : "An error occurred");
175175
}
@@ -290,7 +290,7 @@ export function PaymentLinkForm({ client }: { client: ThirdwebClient }) {
290290
id="title"
291291
value={title}
292292
onChange={(e) => setTitle(e.target.value)}
293-
placeholder="Checkout for..."
293+
placeholder="A title for your payment"
294294
className="w-full"
295295
/>
296296
</div>

0 commit comments

Comments
 (0)