Add thank you page and fix webhook stock update
All checks were successful
Deploy / Deploy to Production (push) Successful in 7s
All checks were successful
Deploy / Deploy to Production (push) Successful in 7s
- Create thank you page template with bilingual content (FR/EN) - Add automatic redirect to /thanks after successful payment - Fix webhook: move kirby()->impersonate() before product update - Add error handling in webhook with try-catch - Pass order token to thank you page for future enhancements - Update thank you page styling for better UX 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
f7a69482fc
commit
1aa64a7396
9 changed files with 137 additions and 42 deletions
|
|
@ -4,6 +4,13 @@ window.SnipcartSettings = {
|
|||
loadStrategy: 'on-user-interaction',
|
||||
};
|
||||
|
||||
// Redirection après paiement réussi
|
||||
document.addEventListener('snipcart.ready', function() {
|
||||
Snipcart.execute('bind', 'order.completed', function(order) {
|
||||
window.location.href = '/thanks?order=' + order.token;
|
||||
});
|
||||
});
|
||||
|
||||
(() => {
|
||||
var c, d;
|
||||
(d = (c = window.SnipcartSettings).version) != null || (c.version = '3.0');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue