@betterstore/sdk 0.3.56 → 0.3.57
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/CHANGELOG.md +6 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -280,9 +280,10 @@ declare class Client {
|
|
|
280
280
|
/**
|
|
281
281
|
* Generate payment secret for a checkout session
|
|
282
282
|
*/
|
|
283
|
-
|
|
283
|
+
generateCheckoutPaymentSecret(clientSecret: string, checkoutId: string): Promise<{
|
|
284
284
|
paymentSecret: string;
|
|
285
285
|
publicKey: string;
|
|
286
|
+
checkoutSession: CheckoutSession;
|
|
286
287
|
}>;
|
|
287
288
|
/**
|
|
288
289
|
* Create a new customer
|
package/dist/index.d.ts
CHANGED
|
@@ -280,9 +280,10 @@ declare class Client {
|
|
|
280
280
|
/**
|
|
281
281
|
* Generate payment secret for a checkout session
|
|
282
282
|
*/
|
|
283
|
-
|
|
283
|
+
generateCheckoutPaymentSecret(clientSecret: string, checkoutId: string): Promise<{
|
|
284
284
|
paymentSecret: string;
|
|
285
285
|
publicKey: string;
|
|
286
|
+
checkoutSession: CheckoutSession;
|
|
286
287
|
}>;
|
|
287
288
|
/**
|
|
288
289
|
* Create a new customer
|
package/dist/index.js
CHANGED
|
@@ -284,13 +284,14 @@ var Client = class {
|
|
|
284
284
|
/**
|
|
285
285
|
* Generate payment secret for a checkout session
|
|
286
286
|
*/
|
|
287
|
-
|
|
287
|
+
generateCheckoutPaymentSecret(clientSecret, checkoutId) {
|
|
288
288
|
return __async(this, null, function* () {
|
|
289
289
|
const apiClient = createApiClient(clientSecret, this.proxy);
|
|
290
290
|
const data = yield apiClient.post(`/checkout/payment/${checkoutId}`);
|
|
291
291
|
return {
|
|
292
292
|
paymentSecret: data.paymentSecret,
|
|
293
|
-
publicKey: data.publicKey
|
|
293
|
+
publicKey: data.publicKey,
|
|
294
|
+
checkoutSession: data.checkoutSession
|
|
294
295
|
};
|
|
295
296
|
});
|
|
296
297
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -248,13 +248,14 @@ var Client = class {
|
|
|
248
248
|
/**
|
|
249
249
|
* Generate payment secret for a checkout session
|
|
250
250
|
*/
|
|
251
|
-
|
|
251
|
+
generateCheckoutPaymentSecret(clientSecret, checkoutId) {
|
|
252
252
|
return __async(this, null, function* () {
|
|
253
253
|
const apiClient = createApiClient(clientSecret, this.proxy);
|
|
254
254
|
const data = yield apiClient.post(`/checkout/payment/${checkoutId}`);
|
|
255
255
|
return {
|
|
256
256
|
paymentSecret: data.paymentSecret,
|
|
257
|
-
publicKey: data.publicKey
|
|
257
|
+
publicKey: data.publicKey,
|
|
258
|
+
checkoutSession: data.checkoutSession
|
|
258
259
|
};
|
|
259
260
|
});
|
|
260
261
|
}
|