tonder-web-sdk 1.12.0-beta.7 → 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
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
<workItem from="1723774667217" duration="11739000" />
|
|
112
112
|
<workItem from="1723855727317" duration="20341000" />
|
|
113
113
|
<workItem from="1723952592527" duration="17418000" />
|
|
114
|
-
<workItem from="1724247675743" duration="
|
|
114
|
+
<workItem from="1724247675743" duration="32084000" />
|
|
115
115
|
</task>
|
|
116
116
|
<servers />
|
|
117
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/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
|
}
|