tonder-web-sdk 1.12.0-beta.6 → 1.12.0-beta.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/.idea/workspace.xml
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
<change beforePath="$PROJECT_DIR$/src/helpers/utils.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/helpers/utils.js" afterDir="false" />
|
|
26
26
|
<change beforePath="$PROJECT_DIR$/src/index-dev.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/index-dev.js" afterDir="false" />
|
|
27
27
|
<change beforePath="$PROJECT_DIR$/src/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.html" afterDir="false" />
|
|
28
|
+
<change beforePath="$PROJECT_DIR$/src/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.js" afterDir="false" />
|
|
28
29
|
<change beforePath="$PROJECT_DIR$/v1/bundle.min.js" beforeDir="false" afterPath="$PROJECT_DIR$/v1/bundle.min.js" afterDir="false" />
|
|
29
30
|
</list>
|
|
30
31
|
<option name="SHOW_DIALOG" value="false" />
|
|
@@ -110,7 +111,7 @@
|
|
|
110
111
|
<workItem from="1723774667217" duration="11739000" />
|
|
111
112
|
<workItem from="1723855727317" duration="20341000" />
|
|
112
113
|
<workItem from="1723952592527" duration="17418000" />
|
|
113
|
-
<workItem from="1724247675743" duration="
|
|
114
|
+
<workItem from="1724247675743" duration="32084000" />
|
|
114
115
|
</task>
|
|
115
116
|
<servers />
|
|
116
117
|
</component>
|
package/package.json
CHANGED
|
@@ -75,6 +75,7 @@ export class BaseInlineCheckout {
|
|
|
75
75
|
this.#handleMetadata(data);
|
|
76
76
|
this.#handleCurrency(data);
|
|
77
77
|
this.#handleCard(data);
|
|
78
|
+
console.log("data", data)
|
|
78
79
|
const response = await this._checkout(data);
|
|
79
80
|
this.process3ds.setPayload(response);
|
|
80
81
|
this.callBack(response);
|
|
@@ -169,13 +169,14 @@ export class LiteInlineCheckout extends BaseInlineCheckout {
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
async _checkout({ card, payment_method }) {
|
|
172
|
+
console.log("_checkout", card, payment_method)
|
|
172
173
|
const customer = await this._getCustomer(
|
|
173
174
|
this.customer,
|
|
174
175
|
this.abortController.signal,
|
|
175
176
|
);
|
|
176
177
|
const { vault_id, vault_url } = this.merchantData;
|
|
177
178
|
let skyflowTokens;
|
|
178
|
-
if (
|
|
179
|
+
if (!payment_method || payment_method !== "" || payment_method === null) {
|
|
179
180
|
if (typeof payment_method === "string") {
|
|
180
181
|
skyflowTokens = {
|
|
181
182
|
skyflow_id: card,
|
package/src/index-dev.js
CHANGED
package/src/index.js
CHANGED
package/types/checkout.ts
CHANGED
|
@@ -111,8 +111,8 @@ export interface IProcessPaymentRequest {
|
|
|
111
111
|
|
|
112
112
|
export interface ICardFields {
|
|
113
113
|
card_number: string;
|
|
114
|
+
cvv: string;
|
|
114
115
|
expiration_month: string;
|
|
115
116
|
expiration_year: string;
|
|
116
|
-
|
|
117
|
-
card_scheme: string;
|
|
117
|
+
cardholder_name: string;
|
|
118
118
|
}
|