Release v0.2.1
Fixes
Log Panel Now Works
The "Show Log" button on the payment screen was completely non-functional. The PHP template was still rendering old jQuery HTML, but the enqueued script was the React build — which never mounted because the expected #wcpos-vipps-root element didn't exist. The PHP now renders a single React mount point, and a new LogPanel component handles the collapsible log toggle. Both server-side log_entries from AJAX responses and client-side [CLIENT] events are collected and displayed.
Card Wrapper Removed
The payment buttons no longer sit inside a card-style container (the background, padding, border-radius, and box-shadow have been removed from #wcpos-vipps-payment-interface).
jQuery Cleanup
Deleted the unused assets/js/payment.js jQuery file. The React app is the sole frontend — having both around just caused confusion.
Testing
- 10 new tests added (6 for LogPanel component, 4 for log collection in
useVippsPaymenthook) - Total: 38 tests, all passing