Skip to content

PayPal v6 (Task 3) — Split Funding Source Variants (Venmo, Credit, Pay Later) - #4127

Draft
johnayeni wants to merge 44 commits into
feature/paypal-sdk-v6from
feature/paypal-sdk-v6-phase2
Draft

PayPal v6 (Task 3) — Split Funding Source Variants (Venmo, Credit, Pay Later)#4127
johnayeni wants to merge 44 commits into
feature/paypal-sdk-v6from
feature/paypal-sdk-v6-phase2

Conversation

@johnayeni

Copy link
Copy Markdown
Contributor

📋 Pull Request Checklist

  • I have added unit tests to cover my changes.
  • I have added or updated Storybook stories where applicable.
  • I have tested the changes manually in the local environment.
  • I have checked that no PII data is being sent on analytics events
  • If adding new analytics events: I have verified the structure of these events with the Data team; and asked the API team to make the necessary backend changes
  • All E2E tests are passing, and I have added new tests if necessary.
  • All interfaces and types introduced or updated are strictly typed.
  • If new translation keys are required: I have created these, had them translated & published; and have generated the new files and added them to this PR.

📝 Summary


🧪 Tested scenarios


🔗 Related GitHub Issue / Internal Ticket number

Closes:


johnayeni and others added 30 commits August 4, 2026 13:48
…bility) (#4087)

* feature: add paypal service and sdk loader services

* chore: pass csp nounce to script

* chore: add empty changeset

* chore: PR review comments

* chore: update rollup config to add @paypal/paypal-js/sdk-v6 as an external dependency for es and cjs builds

* fix: ts issues

* chore: update yarn.lock

* chore: add unit test for usePayPalV6 config

* chore: adjust size limit

* chore: PR review comments

* chore: rename getElgibleMethods to getEligiblePaymentMethods

* chore: fix circular dependency

* chore: remove unneccessary paypal service check

* chore: add paypal service undefined check
@changeset-bot

changeset-bot Bot commented Aug 6, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 44104fa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces split PayPal components (PayPalPayLater, PaypalCredit, and Venmo) by extracting shared logic into a new BasePaypalElement class, adding Storybook stories, and updating component mappings. Key feedback includes adding missing dependencies (countryCode and amount) to the useEffect hook in PayPalMessaging.tsx, destructuring and passing countryCode in PayPalPaylaterComponent.tsx, implementing formatProps in BasePaypalElement to support zero-auth flows, and correcting the Venmo configuration key to paypal_venmo in Dropin.stories.tsx.

Comment thread packages/lib/src/components/PayPal/components/PayPalMessaging.tsx Outdated
Comment thread packages/lib/src/components/PayPal/components/PaypalPaylaterComponent.tsx Outdated
Comment thread packages/lib/src/components/PayPal/models/BasePaypalElement.tsx
Comment thread packages/lib/src/components/Dropin/stories/dropin/Dropin.stories.tsx Outdated
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
UMD 129.21 KB (+0.67% 🔺)
Auto 136.67 KB (+0.84% 🔺)
ESM - Core 36.58 KB (+0.02% 🔺)
ESM - Core + Card 77.06 KB (+0.08% 🔺)
ESM - Core + Dropin with Card 83.28 KB (+0.05% 🔺)

@netlify

netlify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploy Preview for adyen-web ready!

Name Link
🔨 Latest commit 44104fa
🔍 Latest deploy log https://app.netlify.com/projects/adyen-web/deploys/6a75dab37f49390008ac02b7
😎 Deploy Preview https://deploy-preview-4127.checkout-web-dev.adyen.com
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Strict TypeScript Scan Results

Total: 2979 errors (baseline: 2984) | ✅ Pass

Files with regressions (0 files)
File PR Baseline Delta

Last updated: 2026-08-07 13:17:50 UTC

@sonarqubecloud

sonarqubecloud Bot commented Aug 7, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
16.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant