We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43fa8e2 commit baa462eCopy full SHA for baa462e
resources/stores/payment.ts
@@ -240,6 +240,9 @@ export const usePaymentStore = defineStore('payment', {
240
getCurrentPlan(state): Stripe.Subscription {
241
return state.activeSubscription
242
},
243
+ getTransactionHistory(state): Stripe.Invoice[] {
244
+ return state.transactionHistory
245
+ },
246
hasPaymentMethods(state): boolean {
247
return state.paymentMethods.length || !(!state.defaultPaymentMethod // Checks for null or undefined
248
|| (typeof state.defaultPaymentMethod === 'object'
0 commit comments