@@ -45,7 +45,7 @@ export function CheckoutPage() {
4545
4646 setIsProcessing ( true ) ;
4747 try {
48- const res = await auctionApi . processPayment ( item . id ) ;
48+ const res = await auctionApi . processPayment ( item . id , item . currentPrice ) ;
4949 if ( res . success ) {
5050 showToast ( 'Payment successful! Your item will be shipped soon.' , 'success' ) ;
5151 navigate ( '/my-page?tab=auctions' ) ;
@@ -79,9 +79,7 @@ export function CheckoutPage() {
7979 ) ;
8080 }
8181
82- const serviceFee = Math . floor ( item . currentPrice * 0.05 ) ;
83- const shippingFee = 0 ; // Free shipping
84- const totalAmount = item . currentPrice + serviceFee + shippingFee ;
82+ const totalAmount = item . currentPrice ;
8583
8684 return (
8785 < Layout >
@@ -112,14 +110,6 @@ export function CheckoutPage() {
112110 < span className = "text-gray-400" > Winning Bid</ span >
113111 < span className = "text-white font-medium" > ₩{ formatPrice ( item . currentPrice ) } </ span >
114112 </ div >
115- < div className = "flex justify-between text-sm" >
116- < span className = "text-gray-400" > Shipping</ span >
117- < span className = "text-white font-medium" > ₩{ formatPrice ( shippingFee ) } </ span >
118- </ div >
119- < div className = "flex justify-between text-sm" >
120- < span className = "text-gray-400" > Service Fee (5%)</ span >
121- < span className = "text-white font-medium" > ₩{ formatPrice ( serviceFee ) } </ span >
122- </ div >
123113 < div className = "border-t border-[#1e3a5f] pt-3 flex justify-between items-center" >
124114 < span className = "text-white font-bold text-lg" > Total</ span >
125115 < span className = "text-blue-400 font-black text-xl" > ₩{ formatPrice ( totalAmount ) } </ span >
0 commit comments