import { defineStore } from 'pinia' export const usePaymentStore = defineStore('payment', { state: () => ({ currentStep: 1, // 1: info, 2: qr, 3: success patientInfo: { name: 'ALDY GUSTINARA', amount: 'Rp 1.520.000', expiry: '2025-08-24 12:30:00' }, qrCode: 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgZmlsbD0iIzAwMCIvPjxyZWN0IHg9IjEwIiB5PSIxMCIgd2lkdGg9IjE4MCIgaGVpZ2h0PSIxODAiIGZpbGw9IiNmZmYiLz48L3N2Zz4=' }), actions: { nextStep() { if (this.currentStep < 3) { this.currentStep++ } }, prevStep() { if (this.currentStep > 1) { this.currentStep-- } }, reset() { this.currentStep = 1 } } })