import React from 'react';\nimport { Button } from '@/components/ui/button';\nimport { paymentService } from '../services/paymentService';\n\nexport function PaymentTest() {\n  const handleTestPayment = async () => {\n    try {\n      const order = { amount: 9.9, currency: 'CNY' };\n      const result = await paymentService.pay(order);\n      console.log('Payment result:', result);\n    } catch (error) {\n      console.error('Payment error:', error);\n    }\n  };\n\n  return (\n    <div>\n      <Button onClick={handleTestPayment}>测试支付</Button>\n    </div>\n  );\n}\n