Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix paypal OAuth

Steven Teyc2b65b81b562
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/partner-payout-settings-button.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/partner-payout-settings-button.tsx
index fd62e086c9..e2a36a4f56 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/partner-payout-settings-button.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/partner-payout-settings-button.tsx
@@ -15,7 +15,9 @@ export function PartnerPayoutSettingsButton() {
<>
<PartnerPayoutSettingsSheet />
- {!partner?.payoutsEnabledAt && <ConnectPayoutButton />}
+ {!partner?.payoutsEnabledAt && (
+ <ConnectPayoutButton className="h-9 px-3" />
+ )}
<Button
type="button"
diff --git a/apps/web/lib/paypal/oauth.ts b/apps/web/lib/paypal/oauth.ts
index 70a9322b5b..1ce5bb42dc 100644
--- a/apps/web/lib/paypal/oauth.ts
+++ b/apps/web/lib/paypal/oauth.ts
@@ -1,4 +1,4 @@
-import { APP_DOMAIN_WITH_NGROK } from "@dub/utils";
+import { PARTNERS_DOMAIN_WITH_NGROK } from "@dub/utils";
import {
OAuthProvider,
OAuthProviderConfig,
@@ -40,7 +40,7 @@ export const paypalOAuthProvider = new PayPalOAuthProvider({
clientSecret: paypalEnv.PAYPAL_CLIENT_SECRET!,
authUrl: paypalEnv.PAYPAL_AUTHORIZE_URL,
tokenUrl: `${paypalEnv.PAYPAL_API_HOST}/v1/oauth2/token`,
- redirectUri: `${APP_DOMAIN_WITH_NGROK}/api/paypal/callback`,
+ redirectUri: `${PARTNERS_DOMAIN_WITH_NGROK}/api/paypal/callback`,
redisStatePrefix: "paypal:oauth:state",
scopes: ["email"].join(" "),
tokenSchema: paypalAuthTokenSchema,