tonder-web-sdk 1.12.0-beta.1 → 1.12.0-beta.2
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/package.json
CHANGED
|
@@ -29,15 +29,6 @@ export class LiteInlineCheckout extends BaseInlineCheckout {
|
|
|
29
29
|
return await fetchCustomerCards(this.baseUrl, authToken, businessId);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
/**
|
|
33
|
-
* Saves a card to a customer's account. This method can be used to add a new card
|
|
34
|
-
* or update an existing one.
|
|
35
|
-
* @param {string} authToken - The customer's authentication token.
|
|
36
|
-
* @param {string} businessId - The business primary key.
|
|
37
|
-
* @param {Object} card - The card information to be saved.
|
|
38
|
-
* @returns {Promise<Object>} A promise that resolves with the saved card data.
|
|
39
|
-
* @public
|
|
40
|
-
*/
|
|
41
32
|
async saveCustomerCard(authToken, businessId, card) {
|
|
42
33
|
const skyflowTokens = await getSkyflowTokens({
|
|
43
34
|
vault_id: vault_id,
|
|
@@ -46,7 +37,7 @@ export class LiteInlineCheckout extends BaseInlineCheckout {
|
|
|
46
37
|
baseUrl: this.baseUrl,
|
|
47
38
|
apiKey: this.apiKeyTonder,
|
|
48
39
|
});
|
|
49
|
-
|
|
40
|
+
|
|
50
41
|
return await saveCustomerCard(
|
|
51
42
|
this.baseUrl,
|
|
52
43
|
authToken,
|