@internxt/sdk 1.11.16 → 1.11.17
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.
|
@@ -56,7 +56,7 @@ export declare class Checkout {
|
|
|
56
56
|
* - `payload.url`: The URL of the invoice
|
|
57
57
|
* - `payload.qrUrl`: The QR code URL of the invoice
|
|
58
58
|
*/
|
|
59
|
-
createPaymentIntent({ customerId, priceId, token, currency, captchaToken, promoCodeId, }: CreatePaymentIntentPayload): Promise<PaymentIntent>;
|
|
59
|
+
createPaymentIntent({ customerId, priceId, token, currency, captchaToken, userAddress, promoCodeId, }: CreatePaymentIntentPayload): Promise<PaymentIntent>;
|
|
60
60
|
/**
|
|
61
61
|
* @description Fetch a requested price by its ID and its tax rate
|
|
62
62
|
* @param priceId - The ID of the price
|
|
@@ -93,13 +93,14 @@ var Checkout = /** @class */ (function () {
|
|
|
93
93
|
* - `payload.qrUrl`: The QR code URL of the invoice
|
|
94
94
|
*/
|
|
95
95
|
Checkout.prototype.createPaymentIntent = function (_a) {
|
|
96
|
-
var customerId = _a.customerId, priceId = _a.priceId, token = _a.token, currency = _a.currency, captchaToken = _a.captchaToken, promoCodeId = _a.promoCodeId;
|
|
96
|
+
var customerId = _a.customerId, priceId = _a.priceId, token = _a.token, currency = _a.currency, captchaToken = _a.captchaToken, userAddress = _a.userAddress, promoCodeId = _a.promoCodeId;
|
|
97
97
|
return this.client.post('/checkout/payment-intent', {
|
|
98
98
|
customerId: customerId,
|
|
99
99
|
priceId: priceId,
|
|
100
100
|
token: token,
|
|
101
101
|
currency: currency,
|
|
102
102
|
captchaToken: captchaToken,
|
|
103
|
+
userAddress: userAddress,
|
|
103
104
|
promoCodeId: promoCodeId,
|
|
104
105
|
}, this.authHeaders());
|
|
105
106
|
};
|