straumur-web-component 0.3.6 → 0.3.7
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 +17 -3
- package/dist/index.mjs +17 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1361,10 +1361,15 @@ function GooglePayComponent({ configuration, paymentMethods }) {
|
|
|
1361
1361
|
value: paymentMethods.minorUnitsAmount,
|
|
1362
1362
|
currency: paymentMethods.currency
|
|
1363
1363
|
},
|
|
1364
|
-
onAdditionalDetails: handleOnSubmitAdditionalData,
|
|
1365
1364
|
onError: handleOnError,
|
|
1366
|
-
onPaymentCompleted:
|
|
1367
|
-
|
|
1365
|
+
onPaymentCompleted: (data, _) => {
|
|
1366
|
+
console.log("Adyen Payment completed", data);
|
|
1367
|
+
configuration.onPaymentCompleted?.();
|
|
1368
|
+
},
|
|
1369
|
+
onPaymentFailed: (data, _) => {
|
|
1370
|
+
console.log("Adyen Payment failed", data);
|
|
1371
|
+
configuration.onPaymentFailed?.();
|
|
1372
|
+
}
|
|
1368
1373
|
});
|
|
1369
1374
|
const gpayConfig = paymentMethods.paymentMethods.paymentMethods.find((x) => x.type === "googlepay").configuration;
|
|
1370
1375
|
const googlePayConfiguration = {
|
|
@@ -1375,6 +1380,15 @@ function GooglePayComponent({ configuration, paymentMethods }) {
|
|
|
1375
1380
|
countryCode: "IS",
|
|
1376
1381
|
environment: configuration.environment,
|
|
1377
1382
|
onSubmit: handleOnSubmit,
|
|
1383
|
+
onAdditionalDetails: handleOnSubmitAdditionalData,
|
|
1384
|
+
onPaymentCompleted: (data, _) => {
|
|
1385
|
+
console.log("GooglePay Payment completed", data);
|
|
1386
|
+
configuration.onPaymentCompleted?.();
|
|
1387
|
+
},
|
|
1388
|
+
onPaymentFailed: (data, _) => {
|
|
1389
|
+
console.log("GooglePay Payment failed", data);
|
|
1390
|
+
configuration.onPaymentFailed?.();
|
|
1391
|
+
},
|
|
1378
1392
|
configuration: {
|
|
1379
1393
|
...gpayConfig,
|
|
1380
1394
|
merchantName: paymentMethods.merchantName
|
package/dist/index.mjs
CHANGED
|
@@ -1341,10 +1341,15 @@ function GooglePayComponent({ configuration, paymentMethods }) {
|
|
|
1341
1341
|
value: paymentMethods.minorUnitsAmount,
|
|
1342
1342
|
currency: paymentMethods.currency
|
|
1343
1343
|
},
|
|
1344
|
-
onAdditionalDetails: handleOnSubmitAdditionalData,
|
|
1345
1344
|
onError: handleOnError,
|
|
1346
|
-
onPaymentCompleted:
|
|
1347
|
-
|
|
1345
|
+
onPaymentCompleted: (data, _) => {
|
|
1346
|
+
console.log("Adyen Payment completed", data);
|
|
1347
|
+
configuration.onPaymentCompleted?.();
|
|
1348
|
+
},
|
|
1349
|
+
onPaymentFailed: (data, _) => {
|
|
1350
|
+
console.log("Adyen Payment failed", data);
|
|
1351
|
+
configuration.onPaymentFailed?.();
|
|
1352
|
+
}
|
|
1348
1353
|
});
|
|
1349
1354
|
const gpayConfig = paymentMethods.paymentMethods.paymentMethods.find((x) => x.type === "googlepay").configuration;
|
|
1350
1355
|
const googlePayConfiguration = {
|
|
@@ -1355,6 +1360,15 @@ function GooglePayComponent({ configuration, paymentMethods }) {
|
|
|
1355
1360
|
countryCode: "IS",
|
|
1356
1361
|
environment: configuration.environment,
|
|
1357
1362
|
onSubmit: handleOnSubmit,
|
|
1363
|
+
onAdditionalDetails: handleOnSubmitAdditionalData,
|
|
1364
|
+
onPaymentCompleted: (data, _) => {
|
|
1365
|
+
console.log("GooglePay Payment completed", data);
|
|
1366
|
+
configuration.onPaymentCompleted?.();
|
|
1367
|
+
},
|
|
1368
|
+
onPaymentFailed: (data, _) => {
|
|
1369
|
+
console.log("GooglePay Payment failed", data);
|
|
1370
|
+
configuration.onPaymentFailed?.();
|
|
1371
|
+
},
|
|
1358
1372
|
configuration: {
|
|
1359
1373
|
...gpayConfig,
|
|
1360
1374
|
merchantName: paymentMethods.merchantName
|