@bigbinary/neeto-payments-frontend 1.3.10 → 1.3.11
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.js +20 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -647,6 +647,21 @@ var DEFAULT_SORT_PROPERTIES$1 = {
|
|
|
647
647
|
};
|
|
648
648
|
var SORT_DIRECTIONS = ["ascend", "descend"];
|
|
649
649
|
var RAZORPAY_PAYMENT_BUTTON_OPTIONS = {
|
|
650
|
+
readonly: {
|
|
651
|
+
email: true
|
|
652
|
+
},
|
|
653
|
+
config: {
|
|
654
|
+
display: {
|
|
655
|
+
hide: [{
|
|
656
|
+
method: "netbanking"
|
|
657
|
+
}, {
|
|
658
|
+
method: "paylater"
|
|
659
|
+
}],
|
|
660
|
+
preferences: {
|
|
661
|
+
show_default_blocks: true
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
},
|
|
650
665
|
theme: {
|
|
651
666
|
color: "#4558f9"
|
|
652
667
|
}
|
|
@@ -8838,6 +8853,8 @@ var RazorpayPaymentButton = function RazorpayPaymentButton(_ref) {
|
|
|
8838
8853
|
discountCode = _ref.discountCode,
|
|
8839
8854
|
email = _ref.email,
|
|
8840
8855
|
name = _ref.name,
|
|
8856
|
+
_ref$isCardPreservabl = _ref.isCardPreservable,
|
|
8857
|
+
isCardPreservable = _ref$isCardPreservabl === void 0 ? false : _ref$isCardPreservabl,
|
|
8841
8858
|
_ref$onBeforePayment = _ref.onBeforePayment,
|
|
8842
8859
|
onBeforePayment = _ref$onBeforePayment === void 0 ? neetocist.noop : _ref$onBeforePayment,
|
|
8843
8860
|
_ref$onSuccessfulPaym = _ref.onSuccessfulPayment,
|
|
@@ -8884,10 +8901,13 @@ var RazorpayPaymentButton = function RazorpayPaymentButton(_ref) {
|
|
|
8884
8901
|
};
|
|
8885
8902
|
var handleSuccess = function handleSuccess(_ref3) {
|
|
8886
8903
|
var order = _ref3.order;
|
|
8904
|
+
var save = isCardPreservable ? 1 : 0;
|
|
8887
8905
|
var options = {
|
|
8906
|
+
save: save,
|
|
8888
8907
|
key: "rzp_test_2qxZvSl4vA60qr",
|
|
8889
8908
|
// Remove it after the issue with dashboard is fixed
|
|
8890
8909
|
order_id: order.identifier,
|
|
8910
|
+
customer_id: order.customerIdentifier,
|
|
8891
8911
|
prefill: {
|
|
8892
8912
|
name: name,
|
|
8893
8913
|
email: email
|