@paypal/checkout-components 5.0.421-alpha-b72100f.0 → 5.0.421
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paypal/checkout-components",
|
|
3
|
-
"version": "5.0.421
|
|
3
|
+
"version": "5.0.421",
|
|
4
4
|
"description": "PayPal Checkout components, for integrating checkout products.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -121,15 +121,11 @@
|
|
|
121
121
|
"@paypal/fastlane-sdk-loader": "^1.2.1",
|
|
122
122
|
"@paypal/common-components": "^1.0.35",
|
|
123
123
|
"@paypal/funding-components": "^1.0.31",
|
|
124
|
-
"@paypal/sdk-client": "4.0.
|
|
125
|
-
"@paypal/sdk-constants": "^1.0.158
|
|
124
|
+
"@paypal/sdk-client": "^4.0.199",
|
|
125
|
+
"@paypal/sdk-constants": "^1.0.158",
|
|
126
126
|
"@paypal/sdk-logos": "^2.3.7"
|
|
127
127
|
},
|
|
128
128
|
"lint-staged": {
|
|
129
129
|
"**/*": "prettier --write --ignore-unknown"
|
|
130
|
-
},
|
|
131
|
-
"alias": {
|
|
132
|
-
"@paypal/sdk-client": "./node_modules/@paypal/sdk-client",
|
|
133
|
-
"@paypal/sdk-constants": "./node_modules/@paypal/sdk-constants"
|
|
134
130
|
}
|
|
135
131
|
}
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
getLogger,
|
|
7
7
|
getLocale,
|
|
8
8
|
getClientID,
|
|
9
|
-
getHostedButtonID,
|
|
10
9
|
getEnv,
|
|
11
10
|
getIntent,
|
|
12
11
|
getCommit,
|
|
@@ -557,19 +556,6 @@ export const getButtonsComponent: () => ButtonsComponent = memoize(() => {
|
|
|
557
556
|
queryParam: true,
|
|
558
557
|
},
|
|
559
558
|
|
|
560
|
-
hostedButtonId: {
|
|
561
|
-
type: "string",
|
|
562
|
-
required: false,
|
|
563
|
-
value: () => {
|
|
564
|
-
try {
|
|
565
|
-
return getHostedButtonID();
|
|
566
|
-
} catch (err) {
|
|
567
|
-
// hostedButtonId is optional; not present on most SDK integrations
|
|
568
|
-
}
|
|
569
|
-
},
|
|
570
|
-
queryParam: true,
|
|
571
|
-
},
|
|
572
|
-
|
|
573
559
|
clientMetadataID: {
|
|
574
560
|
type: "string",
|
|
575
561
|
required: false,
|
|
@@ -889,6 +875,12 @@ export const getButtonsComponent: () => ButtonsComponent = memoize(() => {
|
|
|
889
875
|
},
|
|
890
876
|
},
|
|
891
877
|
|
|
878
|
+
hostedButtonId: {
|
|
879
|
+
type: "string",
|
|
880
|
+
required: false,
|
|
881
|
+
queryParam: true,
|
|
882
|
+
},
|
|
883
|
+
|
|
892
884
|
intent: {
|
|
893
885
|
type: "string",
|
|
894
886
|
queryParam: true,
|
|
@@ -176,6 +176,16 @@ export function getVenmoCheckoutComponent(): VenmoCheckoutComponent {
|
|
|
176
176
|
type: "function",
|
|
177
177
|
queryParam: "token",
|
|
178
178
|
alias: "payment",
|
|
179
|
+
required: false,
|
|
180
|
+
// $FlowIgnore
|
|
181
|
+
queryValue: ({ value }) => ZalgoPromise.try(value),
|
|
182
|
+
decorate: ({ value }) => memoize(value),
|
|
183
|
+
},
|
|
184
|
+
|
|
185
|
+
createVaultSetupToken: {
|
|
186
|
+
type: "function",
|
|
187
|
+
queryParam: "vault_token",
|
|
188
|
+
required: false,
|
|
179
189
|
// $FlowFixMe
|
|
180
190
|
queryValue: ({ value }) => ZalgoPromise.try(value),
|
|
181
191
|
decorate: ({ value }) => memoize(value),
|