Skip to content

Commit f46a7dd

Browse files
chore: wip
1 parent 17a114e commit f46a7dd

38 files changed

+115
-156
lines changed

app/Actions/Payment/CreateCheckoutAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default new Action({
66
description: 'Create Checkout link for stripe',
77
method: 'POST',
88
async handle() {
9-
const user = await User.find(2)
9+
const user = await User.find(1)
1010

1111
const checkout = await user?.checkout([
1212
{

app/Actions/Payment/CreateInvoiceSubscription.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default new Action({
66
description: 'Create Invoice Subscription for Stripe',
77
method: 'POST',
88
async handle() {
9-
const user = await User.find(2)
9+
const user = await User.find(1)
1010

1111
const subscription = await user?.newSubscriptionInvoice('pro', 'stacks_pro_monthly')
1212

app/Actions/Payment/CreatePaymentIntentAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default new Action({
99
async handle(request: RequestInstance) {
1010
const amount = Number(request.get('amount'))
1111

12-
const user = await User.find(2)
12+
const user = await User.find(1)
1313

1414
const paymentIntent = await user?.paymentIntent({
1515
amount,

app/Actions/Payment/CreateSetupIntentAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default new Action({
77
description: 'Create Setup Intent for stripe',
88
method: 'POST',
99
async handle(request: RequestInstance) {
10-
const user = await User.find(2)
10+
const user = await User.find(1)
1111

1212
const setupIntent = await user?.createSetupIntent()
1313

app/Actions/Payment/CreateSubscriptionAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default new Action({
1010
const type = request.get('type') as string
1111
const plan = request.get('plan') as string
1212

13-
const user = await User.find(2)
13+
const user = await User.find(1)
1414

1515
const subscription = await user?.newSubscription(plan, type)
1616

app/Actions/Payment/DeleteDefaultPaymentAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default new Action({
77
description: 'Delete the customers default payment method',
88
method: 'POST',
99
async handle(request: RequestInstance) {
10-
const user = await User.find(2)
10+
const user = await User.find(1)
1111
const paymentMethod = request.get('paymentMethod') as string
1212

1313
await user?.deletePaymentMethod(paymentMethod)

app/Actions/Payment/FetchDefaultPaymentMethodAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default new Action({
66
description: 'Fetch the users default payment method',
77
method: 'GET',
88
async handle() {
9-
const user = await User.find(2)
9+
const user = await User.find(1)
1010

1111
const paymentMethod = await user?.defaultPaymentMethod()
1212

app/Actions/Payment/FetchPaymentMethodsAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default new Action({
66
description: 'Fetch the user payment methods',
77
method: 'GET',
88
async handle() {
9-
const user = await User.find(2)
9+
const user = await User.find(1)
1010

1111
const paymentMethods = await user?.paymentMethods()
1212

app/Actions/Payment/FetchStripeCustomerAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default new Action({
66
description: 'Fetch the stripe customer',
77
method: 'GET',
88
async handle() {
9-
const user = await User.find(2)
9+
const user = await User.find(1)
1010

1111
const customer = await user?.asStripeUser()
1212

app/Actions/Payment/SetDefaultPaymentAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default new Action({
77
description: 'Set the customers default payment method',
88
method: 'POST',
99
async handle(request: RequestInstance) {
10-
const user = await User.find(2)
10+
const user = await User.find(1)
1111
const paymentIntent = request.get('setupIntent') as string
1212

1313
const paymentMethod = await user?.setDefaultPaymentMethod(paymentIntent)

0 commit comments

Comments
 (0)