straumur-web-component 0.3.6 → 0.3.8
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,16 @@ function GooglePayComponent({ configuration, paymentMethods }) {
|
|
|
1361
1361
|
value: paymentMethods.minorUnitsAmount,
|
|
1362
1362
|
currency: paymentMethods.currency
|
|
1363
1363
|
},
|
|
1364
|
-
onAdditionalDetails: handleOnSubmitAdditionalData,
|
|
1365
1364
|
onError: handleOnError,
|
|
1366
|
-
|
|
1367
|
-
|
|
1365
|
+
onAdditionalDetails: handleOnSubmitAdditionalData,
|
|
1366
|
+
onPaymentCompleted: (data, _) => {
|
|
1367
|
+
console.log("Adyen Payment completed", data);
|
|
1368
|
+
configuration.onPaymentCompleted?.();
|
|
1369
|
+
},
|
|
1370
|
+
onPaymentFailed: (data, _) => {
|
|
1371
|
+
console.log("Adyen Payment failed", data);
|
|
1372
|
+
configuration.onPaymentFailed?.();
|
|
1373
|
+
}
|
|
1368
1374
|
});
|
|
1369
1375
|
const gpayConfig = paymentMethods.paymentMethods.paymentMethods.find((x) => x.type === "googlepay").configuration;
|
|
1370
1376
|
const googlePayConfiguration = {
|
|
@@ -1375,6 +1381,14 @@ function GooglePayComponent({ configuration, paymentMethods }) {
|
|
|
1375
1381
|
countryCode: "IS",
|
|
1376
1382
|
environment: configuration.environment,
|
|
1377
1383
|
onSubmit: handleOnSubmit,
|
|
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,16 @@ function GooglePayComponent({ configuration, paymentMethods }) {
|
|
|
1341
1341
|
value: paymentMethods.minorUnitsAmount,
|
|
1342
1342
|
currency: paymentMethods.currency
|
|
1343
1343
|
},
|
|
1344
|
-
onAdditionalDetails: handleOnSubmitAdditionalData,
|
|
1345
1344
|
onError: handleOnError,
|
|
1346
|
-
|
|
1347
|
-
|
|
1345
|
+
onAdditionalDetails: handleOnSubmitAdditionalData,
|
|
1346
|
+
onPaymentCompleted: (data, _) => {
|
|
1347
|
+
console.log("Adyen Payment completed", data);
|
|
1348
|
+
configuration.onPaymentCompleted?.();
|
|
1349
|
+
},
|
|
1350
|
+
onPaymentFailed: (data, _) => {
|
|
1351
|
+
console.log("Adyen Payment failed", data);
|
|
1352
|
+
configuration.onPaymentFailed?.();
|
|
1353
|
+
}
|
|
1348
1354
|
});
|
|
1349
1355
|
const gpayConfig = paymentMethods.paymentMethods.paymentMethods.find((x) => x.type === "googlepay").configuration;
|
|
1350
1356
|
const googlePayConfiguration = {
|
|
@@ -1355,6 +1361,14 @@ function GooglePayComponent({ configuration, paymentMethods }) {
|
|
|
1355
1361
|
countryCode: "IS",
|
|
1356
1362
|
environment: configuration.environment,
|
|
1357
1363
|
onSubmit: handleOnSubmit,
|
|
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
|