Skip to content

Commit

Permalink
chore: remove unused paypal code
Browse files Browse the repository at this point in the history
  • Loading branch information
Yizack committed Jun 23, 2024
1 parent 0fea0f2 commit f269d20
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 222 deletions.
8 changes: 0 additions & 8 deletions .config/nuxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ export default defineNuxtConfig({
key: "",
secret: ""
},
paypal: {
secret: "",
webhookId: ""
},
paddle: {
secret: "",
webhookId: ""
Expand All @@ -133,10 +129,6 @@ export default defineNuxtConfig({
}
},
public: {
paypal: {
clientId: process.env.NUXT_PAYPAL_CLIENT_ID || "",
planId: process.env.NUXT_PAYPAL_PLAN_ID || ""
},
paddle: {
clientId: process.env.NUXT_PADDLE_CLIENT_ID || "",
planId: process.env.NUXT_PADDLE_PLAN_ID || ""
Expand Down
1 change: 0 additions & 1 deletion app/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ export default {
free_features: "Always free features",
checkout: "Checkout",
paddle_sdk_not_loaded: "Paddle SDK could not be loaded",
paypal_sdk_not_loaded: "PayPal SDK could not be loaded",
payment_error: "Payment error occurred",
transaction_not_found: "Transaction not found",
invalid_headers: "headers are not valid",
Expand Down
35 changes: 0 additions & 35 deletions app/plugins/paypal.client.ts

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"@nuxtjs/turnstile": "^0.8.0",
"@paddle/paddle-js": "^1.2.0",
"@paddle/paddle-node-sdk": "^1.4.1",
"@paypal/paypal-js": "^8.1.0",
"@types/bootstrap": "^5.2.10",
"@types/leaflet": "^1.9.12",
"@vue-email/components": "^0.0.17",
Expand Down
15 changes: 0 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 0 additions & 33 deletions server/api/webhooks/paypal.post.ts

This file was deleted.

1 change: 0 additions & 1 deletion server/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export { SITE } from "~/utils/site";
export { ErrorCode } from "~~/types/enums/errors";
export { Quota } from "~~/types/enums/quotas";
export { isPasswordValid } from "~/utils/validators";
export { PayPalWebhook } from "~~/types/enums/paypal";
export { z } from "zod";

export const hash = (string: string, salt?: string) => {
Expand Down
17 changes: 0 additions & 17 deletions server/utils/paypal.ts

This file was deleted.

4 changes: 0 additions & 4 deletions types/enums/paypal.ts

This file was deleted.

107 changes: 0 additions & 107 deletions types/paypal.d.ts

This file was deleted.

0 comments on commit f269d20

Please sign in to comment.