|
@@ -169,22 +169,24 @@ const stopPolling = () => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const applyPaymentStatus = (nextPayment) => {
|
|
const applyPaymentStatus = (nextPayment) => {
|
|
|
- if (nextPayment.status === 'paid') {
|
|
|
|
|
- processing.value = false
|
|
|
|
|
|
|
+ payment.value = nextPayment
|
|
|
|
|
|
|
|
- $q.notify({
|
|
|
|
|
- type: 'positive',
|
|
|
|
|
- message: 'Pagamento confirmado!',
|
|
|
|
|
- position: 'top',
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if (nextPayment.status === 'paid') {
|
|
|
|
|
+ processing.value = false
|
|
|
|
|
|
|
|
- paymentStore.clearPixPaymentForServicePackage(cacheKey.value)
|
|
|
|
|
- stopPolling()
|
|
|
|
|
|
|
+ $q.notify({
|
|
|
|
|
+ type: 'positive',
|
|
|
|
|
+ message: 'Pagamento confirmado!',
|
|
|
|
|
+ position: 'top',
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ paymentStore.clearPixPaymentForServicePackage(cacheKey.value)
|
|
|
|
|
+ stopPolling()
|
|
|
|
|
|
|
|
- onDialogOK()
|
|
|
|
|
|
|
+ onDialogOK()
|
|
|
|
|
|
|
|
- return
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
if (['failed', 'cancelled'].includes(nextPayment.status)) {
|
|
if (['failed', 'cancelled'].includes(nextPayment.status)) {
|