@moonpay/platform-sdk-react-native 1.20.0 → 1.22.0
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/dist/index.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -5
- package/dist/index.d.ts +15 -5
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -72,6 +72,7 @@ var applePaySpec = {
|
|
|
72
72
|
clientToken: ctx.core.context.clientToken,
|
|
73
73
|
signature: props.quote,
|
|
74
74
|
...props.externalTransactionId && { externalTransactionId: props.externalTransactionId },
|
|
75
|
+
...props.applePayButtonSettings && { applePayButtonSettings: props.applePayButtonSettings },
|
|
75
76
|
...(0, import_platform_sdk_core.presentationParams)(props.presentation)
|
|
76
77
|
}),
|
|
77
78
|
createCommands: createQuoteCommands,
|
|
@@ -170,6 +171,7 @@ var buyButtonSpec = {
|
|
|
170
171
|
clientToken: ctx.core.context.clientToken,
|
|
171
172
|
signature: props.quote,
|
|
172
173
|
...props.externalTransactionId && { externalTransactionId: props.externalTransactionId },
|
|
174
|
+
...props.applePayButtonSettings && { applePayButtonSettings: props.applePayButtonSettings },
|
|
173
175
|
...(0, import_platform_sdk_core.presentationParams)(props.presentation)
|
|
174
176
|
}),
|
|
175
177
|
createCommands: createQuoteCommands,
|
|
@@ -738,6 +740,7 @@ async function setupApplePay(deps, opts) {
|
|
|
738
740
|
const { handle, dispose } = await deps.mountSession(applePaySpec, {
|
|
739
741
|
quote: opts.quote,
|
|
740
742
|
externalTransactionId: opts.externalTransactionId,
|
|
743
|
+
applePayButtonSettings: opts.applePayButtonSettings,
|
|
741
744
|
presentation: opts.presentation
|
|
742
745
|
});
|
|
743
746
|
handle.onEvent((event) => opts.onEvent?.(event));
|
|
@@ -816,6 +819,7 @@ async function setupBuyButton(deps, opts) {
|
|
|
816
819
|
const { handle, dispose } = await deps.mountSession(buyButtonSpec, {
|
|
817
820
|
quote: opts.quote,
|
|
818
821
|
externalTransactionId: opts.externalTransactionId,
|
|
822
|
+
applePayButtonSettings: opts.applePayButtonSettings,
|
|
819
823
|
presentation: opts.presentation
|
|
820
824
|
});
|
|
821
825
|
handle.onEvent((event) => opts.onEvent?.(event));
|
|
@@ -996,7 +1000,7 @@ function createRNClient(deps) {
|
|
|
996
1000
|
connect: (opts) => connect(deps, opts),
|
|
997
1001
|
setupAuth: (opts) => setupAuth(deps, opts),
|
|
998
1002
|
getCredentials: () => core.getCredentials(),
|
|
999
|
-
getPaymentMethods: () => core.getPaymentMethods(),
|
|
1003
|
+
getPaymentMethods: (params) => core.getPaymentMethods(params),
|
|
1000
1004
|
getQuote: (params) => core.getQuote(params),
|
|
1001
1005
|
getAssets: (params) => core.getAssets(params),
|
|
1002
1006
|
listTransactions: (params) => core.listTransactions(params),
|
|
@@ -1446,6 +1450,7 @@ var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
|
1446
1450
|
function MoonPayApplePayButton({
|
|
1447
1451
|
quote,
|
|
1448
1452
|
externalTransactionId,
|
|
1453
|
+
applePayButtonSettings,
|
|
1449
1454
|
onEvent,
|
|
1450
1455
|
style,
|
|
1451
1456
|
webViewProps
|
|
@@ -1454,7 +1459,7 @@ function MoonPayApplePayButton({
|
|
|
1454
1459
|
MoonPayFrameView,
|
|
1455
1460
|
{
|
|
1456
1461
|
spec: applePaySpec,
|
|
1457
|
-
props: { quote, externalTransactionId },
|
|
1462
|
+
props: { quote, externalTransactionId, applePayButtonSettings },
|
|
1458
1463
|
style,
|
|
1459
1464
|
defaultStyle: { height: 48 },
|
|
1460
1465
|
onEvent,
|
|
@@ -1484,6 +1489,7 @@ var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
|
1484
1489
|
function MoonPayBuyButton({
|
|
1485
1490
|
quote,
|
|
1486
1491
|
externalTransactionId,
|
|
1492
|
+
applePayButtonSettings,
|
|
1487
1493
|
onEvent,
|
|
1488
1494
|
style,
|
|
1489
1495
|
webViewProps
|
|
@@ -1492,7 +1498,7 @@ function MoonPayBuyButton({
|
|
|
1492
1498
|
MoonPayFrameView,
|
|
1493
1499
|
{
|
|
1494
1500
|
spec: buyButtonSpec,
|
|
1495
|
-
props: { quote, externalTransactionId },
|
|
1501
|
+
props: { quote, externalTransactionId, applePayButtonSettings },
|
|
1496
1502
|
style,
|
|
1497
1503
|
defaultStyle: { height: 48 },
|
|
1498
1504
|
onEvent,
|