feat: add successful payment response handling

This commit is contained in:
fsociety
2024-09-10 22:14:46 +02:00
parent 89d2f30241
commit d12b0e3261
3 changed files with 26 additions and 6 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('reloadMe');
this.$wire.call('success', response.preimage);
})
.catch(error => {
console.error('Payment failed:', error);