@sikka/aps 0.0.3 → 0.0.5
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.js +3 -2
- package/dist/index.mjs +3 -2
- package/dist/react/index.d.mts +1 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +1 -1
- package/dist/react/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -809,8 +809,9 @@ var TokenizationModule = class {
|
|
|
809
809
|
}
|
|
810
810
|
return {
|
|
811
811
|
token: response.card_token,
|
|
812
|
-
|
|
813
|
-
|
|
812
|
+
// Use APS response values first, fallback to computing from card number
|
|
813
|
+
last4: response.card_last_digits || response.last4_digits || response.card_number?.slice(-4) || options.cardNumber.slice(-4),
|
|
814
|
+
brand: response.card_brand || response.card_type || this.detectCardBrand(options.cardNumber),
|
|
814
815
|
expiryMonth: options.expiryMonth,
|
|
815
816
|
expiryYear: options.expiryYear
|
|
816
817
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -728,8 +728,9 @@ var TokenizationModule = class {
|
|
|
728
728
|
}
|
|
729
729
|
return {
|
|
730
730
|
token: response.card_token,
|
|
731
|
-
|
|
732
|
-
|
|
731
|
+
// Use APS response values first, fallback to computing from card number
|
|
732
|
+
last4: response.card_last_digits || response.last4_digits || response.card_number?.slice(-4) || options.cardNumber.slice(-4),
|
|
733
|
+
brand: response.card_brand || response.card_type || this.detectCardBrand(options.cardNumber),
|
|
733
734
|
expiryMonth: options.expiryMonth,
|
|
734
735
|
expiryYear: options.expiryYear
|
|
735
736
|
};
|
package/dist/react/index.d.mts
CHANGED
package/dist/react/index.d.ts
CHANGED
package/dist/react/index.js
CHANGED
|
@@ -1055,7 +1055,7 @@ var TokenizationForm = ({
|
|
|
1055
1055
|
if (securityNotice) {
|
|
1056
1056
|
return securityNotice;
|
|
1057
1057
|
}
|
|
1058
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: mergedStyles.securityNotice, children: "\u{1F512} Your card details are securely processed by Amazon Payment Services. We never store your card information." });
|
|
1058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: mergedStyles.securityNotice, className: className.securityNotice, children: "\u{1F512} Your card details are securely processed by Amazon Payment Services. We never store your card information." });
|
|
1059
1059
|
};
|
|
1060
1060
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { style: mergedStyles.container, className: className.container, children: [
|
|
1061
1061
|
beforeForm,
|
package/dist/react/index.mjs
CHANGED
|
@@ -1012,7 +1012,7 @@ var TokenizationForm = ({
|
|
|
1012
1012
|
if (securityNotice) {
|
|
1013
1013
|
return securityNotice;
|
|
1014
1014
|
}
|
|
1015
|
-
return /* @__PURE__ */ jsx2("div", { style: mergedStyles.securityNotice, children: "\u{1F512} Your card details are securely processed by Amazon Payment Services. We never store your card information." });
|
|
1015
|
+
return /* @__PURE__ */ jsx2("div", { style: mergedStyles.securityNotice, className: className.securityNotice, children: "\u{1F512} Your card details are securely processed by Amazon Payment Services. We never store your card information." });
|
|
1016
1016
|
};
|
|
1017
1017
|
return /* @__PURE__ */ jsxs("div", { style: mergedStyles.container, className: className.container, children: [
|
|
1018
1018
|
beforeForm,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sikka/aps",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "A Stripe-like developer-friendly SDK for Amazon Payment Services integration. Supports payment links, hosted checkout, tokenization, webhooks, and payment management.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"license": "MIT",
|
|
54
54
|
"repository": {
|
|
55
55
|
"type": "git",
|
|
56
|
-
"url": "https://github.com/sikka-software/amazon-payment-services
|
|
56
|
+
"url": "https://github.com/sikka-software/amazon-payment-services/issues"
|
|
57
57
|
},
|
|
58
58
|
"bugs": {
|
|
59
59
|
"url": "https://github.com/sikka-software/amazon-payment-services/issues"
|