@@ -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