Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
a142270
Feat: Upgrade Typescript to v5 in react-paypal-js (#685)
EvanReinstein Sep 23, 2025
8b8100c
Merge branch 'main' of https://github.com/paypal/paypal-js into featu…
EvanReinstein Oct 7, 2025
dda72d7
Feat: V6 Context Provider (#688)
EvanReinstein Oct 7, 2025
1e88680
Feat: Add check for existing core script (#701)
EvanReinstein Oct 15, 2025
eb2aa2c
feat: Implement use venmo one time payment session hook
hamzanasir Oct 15, 2025
0632aff
Merge branch 'feature/react-paypal-js-v6' into feature/use-venmo-one-…
hamzanasir Oct 15, 2025
7652c90
Merge branch 'main' of https://github.com/paypal/paypal-js into featu…
EvanReinstein Oct 17, 2025
6770bf6
moved `useProxyProps` to this branch
kand Oct 17, 2025
8f0fc06
rename to types file
kand Oct 17, 2025
be506a0
CreateOrderPromise
kand Oct 17, 2025
3cbb4b3
export CreateOrder* types
kand Oct 17, 2025
2b05465
Merge branch 'feature/react-paypal-js-v6' into feature/use-venmo-one-…
hamzanasir Oct 18, 2025
87c6ff9
chore: Breakout enums from type file
hamzanasir Oct 18, 2025
e433f21
Merge pull request #703 from paypal/feature/breakout-enums-from-types…
hamzanasir Oct 18, 2025
3012443
Merge branch 'feature/react-paypal-js-v6' into feature/use-venmo-one-…
hamzanasir Oct 18, 2025
41820bb
add pay later hook
kand Oct 8, 2025
aeef309
Merge pull request #702 from paypal/feature/use-venmo-one-time-hook
hamzanasir Oct 21, 2025
542a4a7
Merge pull request #697 from paypal/feature/react-paypal-js-v6_paylat…
kand Oct 22, 2025
0b82647
fix venmo test file
kand Oct 22, 2025
c4af8a7
rename test file
kand Oct 22, 2025
7cf93c8
fix types
kand Oct 22, 2025
0ed742f
fix tests and types
kand Oct 23, 2025
e6cdb5a
Merge pull request #705 from paypal/feature/react-paypal-js-v6_fix-ty…
kand Oct 23, 2025
e04cff4
add typecheck to lint command for CI
kand Oct 23, 2025
651ebe8
include all files for tsconfig and fix type errors
kand Oct 23, 2025
de068ef
Merge pull request #707 from paypal/feature/react-paypal-js-v6_typesc…
kand Oct 23, 2025
e559572
Feat: usePayPalOneTimePaymentSession hook (#699)
EvanReinstein Oct 27, 2025
1e04671
Feat: usePayPalSavePaymentSession hook (#708)
EvanReinstein Oct 27, 2025
6f0a2b7
Merge branch 'main' of https://github.com/paypal/paypal-js into featu…
EvanReinstein Oct 27, 2025
2a34caf
Merge branch 'main' of https://github.com/paypal/paypal-js into featu…
EvanReinstein Oct 28, 2025
d79a638
Refactor PayPalProvider (#714)
EvanReinstein Oct 30, 2025
df21f07
Merge branch 'main' of https://github.com/paypal/paypal-js into featu…
EvanReinstein Oct 30, 2025
0e1a267
Merge branch 'main' of https://github.com/paypal/paypal-js into featu…
EvanReinstein Oct 30, 2025
e9d78ac
Merge branch 'main' of https://github.com/paypal/paypal-js into featu…
EvanReinstein Oct 31, 2025
6dc83f4
remove shared test utils file (#723)
EvanReinstein Oct 31, 2025
168cb9a
Feat: Add dataNamespace to the PayPal Provider (#720)
EvanReinstein Nov 3, 2025
a2a8807
Fix/refactor types (#725)
EvanReinstein Nov 3, 2025
3b2d2cd
update presentation mode options and add session props type helpers
EvanReinstein Nov 4, 2025
0fddf7c
Merge branch 'main' of https://github.com/paypal/paypal-js into featu…
EvanReinstein Nov 5, 2025
dd7e92e
Merge branch 'feature/react-paypal-js-v6' of https://github.com/paypa…
EvanReinstein Nov 5, 2025
cde0b51
fix merge conflict
EvanReinstein Nov 5, 2025
fd6202b
v6 React error handling (#721)
kand Nov 5, 2025
10f98b6
Merge branch 'feature/react-paypal-js-v6' of https://github.com/paypa…
EvanReinstein Nov 5, 2025
22b22b9
update use paypal otp session props type
EvanReinstein Nov 5, 2025
4291aab
remove test object
EvanReinstein Nov 5, 2025
d9f5c66
Merge branch 'main' of https://github.com/paypal/paypal-js into featu…
EvanReinstein Nov 5, 2025
1010eff
Merge branch 'feature/react-paypal-js-v6' of https://github.com/paypa…
EvanReinstein Nov 5, 2025
cea5805
Merge branch 'feature/react-paypal-js-v6' of https://github.com/paypa…
EvanReinstein Nov 5, 2025
37626af
update base component presentation mode options types and use paypal …
EvanReinstein Nov 6, 2025
c19fae4
remove commented pseudo-code
EvanReinstein Nov 6, 2025
b2e608e
clean up startOptions object
EvanReinstein Nov 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/calm-dodos-win.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@paypal/react-paypal-js": minor
"@paypal/paypal-js": minor
---

Upgrade react-paypal-js Typescript version to v5.3.3 and update build configuration.
6 changes: 6 additions & 0 deletions .changeset/dirty-seas-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@paypal/react-paypal-js": minor
"@paypal/paypal-js": minor
---

Add V6 instance provider and context hook
5 changes: 5 additions & 0 deletions .changeset/heavy-badgers-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@paypal/react-paypal-js": patch
---

Adds an early resolve to loadCoreSdkScript if a v6 core script already exists.
6 changes: 6 additions & 0 deletions .changeset/quick-lizards-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@paypal/react-paypal-js": patch
"@paypal/paypal-js": patch
---

Refactor paypal provider test utils.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.sha}}
fetch-depth: 0
Expand All @@ -18,7 +18,7 @@ jobs:
run: echo NVMRC=`cat .nvmrc` >> $GITHUB_ENV

- name: ⎔ Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NVMRC }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
access_token: ${{ secrets.GITHUB_TOKEN }}

- name: ⬇️ Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 🤝 Set Node version from .nvmrc
run: echo NVMRC=`cat .nvmrc` >> $GITHUB_ENV

- name: ⎔ Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NVMRC }}

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ node_modules
/playwright-report/
/playwright/.cache/
.idea
.rollup.cache
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
8 changes: 4 additions & 4 deletions docs/readmes/web-sdk-v6-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const paypalCheckout = sdkInstance.createPayPalOneTimePaymentSession({

### Key Features

- **Dynamically Typed SDK Instance**: The return type of `createInstance()` changes based on which components are specified in the components array
- **Type Safety**: Full TypeScript support with proper type checking for all SDK methods and callbacks
- **Component-Based Types**: Different components provide access to different payment methods and functionality
- **Comprehensive Callbacks**: Strongly typed callback functions for handling payment events
- **Dynamically Typed SDK Instance**: The return type of `createInstance()` changes based on which components are specified in the components array
- **Type Safety**: Full TypeScript support with proper type checking for all SDK methods and callbacks
- **Component-Based Types**: Different components provide access to different payment methods and functionality
- **Comprehensive Callbacks**: Strongly typed callback functions for handling payment events
5 changes: 3 additions & 2 deletions docs/styles/paypal-fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ code,
pre,
.tsd-signature,
.tsd-code-block {
font-family: "SF Mono", Monaco, Menlo, Consolas, "Liberation Mono",
"Courier New", monospace !important;
font-family:
"SF Mono", Monaco, Menlo, Consolas, "Liberation Mono", "Courier New",
monospace !important;
}

footer {
Expand Down
Loading
Loading