Skip to content

Commit 9c218a3

Browse files
authored
Update payment-form.blade.php
1 parent 559d735 commit 9c218a3

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

resources/views/components/payment-form.blade.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,23 @@
1010
.then(resp => {
1111
this.initializing = false
1212
13+
if(resp.error){
14+
console.log('error')
15+
16+
return
17+
}
18+
1319
if(resp.session){
1420
this.processing = true
1521
22+
sessionStorage.removeItem('HostedCheckout_sessionId')
23+
24+
session = resp.session
25+
1626
Checkout.configure({
1727
session:{
18-
id: resp.session
28+
id: session.id,
29+
version: session.version,
1930
}
2031
});
2132
@@ -25,7 +36,6 @@
2536
}
2637
}"
2738
@checkout='checkout'
28-
@mpgs-complete.window='$wire.checkoutSuccess()'
2939
>
3040
<x-lunar-mpgs::embed-container />
3141
<x-lunar-mpgs::checkout-button />

0 commit comments

Comments
 (0)