@paynext/sdk 0.0.88 → 0.0.89
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.es.js +3 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5759,8 +5759,6 @@ class gd {
|
|
|
5759
5759
|
C(this, "name");
|
|
5760
5760
|
C(this, "cardSecurity");
|
|
5761
5761
|
C(this, "onPaymentAttempt");
|
|
5762
|
-
// keep translate in constructor for child components; no direct member needed
|
|
5763
|
-
// private readonly translate: TranslateState
|
|
5764
5762
|
C(this, "isBackVisible", !0);
|
|
5765
5763
|
C(this, "events", {
|
|
5766
5764
|
submit: new oe(),
|
|
@@ -5780,15 +5778,15 @@ class gd {
|
|
|
5780
5778
|
this.element.style.setProperty("--input-focus-shadow-color", d);
|
|
5781
5779
|
}), this.back.addEventListener(() => this.events.close.emit()), this.number.addEventListener("change", ({ cardType: c }) => this.cardSecurity.updateCardType(c || null)), this.submit.addEventListener((c) => {
|
|
5782
5780
|
var p;
|
|
5783
|
-
c.preventDefault()
|
|
5781
|
+
c.preventDefault();
|
|
5784
5782
|
const { cvc: l, expiry: d } = this.cardSecurity.value(), { value: u, cardType: h } = this.number.value();
|
|
5785
|
-
this.touchSubmit(), this.validate() && this.events.submit.emit({
|
|
5783
|
+
this.touchSubmit(), this.validate() && ((p = this.onPaymentAttempt) == null || p.call(this, { paymentMethod: q.CARD }), this.events.submit.emit({
|
|
5786
5784
|
number: u,
|
|
5787
5785
|
expiry: d,
|
|
5788
5786
|
cvc: l,
|
|
5789
5787
|
name: this.name.value(),
|
|
5790
5788
|
cardBrand: h
|
|
5791
|
-
});
|
|
5789
|
+
}));
|
|
5792
5790
|
});
|
|
5793
5791
|
}
|
|
5794
5792
|
addEventListener(t, e) {
|