feat: add successful payment response handling

This commit is contained in:
fsociety
2024-09-10 22:20:56 +02:00
parent f584c07912
commit 6075060b56
2 changed files with 10 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ export default (livewireComponent) => ({
.then(response => {
console.log('Payment response:', response);
this.$wire.call('logThis', 'Payment response: ' + JSON.stringify(response));
this.$wire.call('success', response.preimage);
this.$wire.call('success');
})
.catch(error => {
console.error('Payment failed:', error);