37 lines
930 B
TypeScript
37 lines
930 B
TypeScript
// Metro module 4514 (f4515).
|
|
import { Endpoints } from "../../../Constants";
|
|
import { HTTP } from "../../../_bundle/sendRequest";
|
|
export async function createStripeSetupIntent(c25230_0) {
|
|
let c25230_2;
|
|
c25230_2 = void 0;
|
|
let r27 = c25230_0;
|
|
if (r27 === void 0) {
|
|
r27 = {};
|
|
}
|
|
let c29397_0 = r27;
|
|
await void 0;
|
|
return (await HTTP.post({
|
|
url: Endpoints.BILLING_STRIPE_SETUP_INTENT_SECRET,
|
|
oldFormErrors: true,
|
|
rejectWithError: true,
|
|
...c29397_0
|
|
})).body;
|
|
}
|
|
export async function createSetupIntentForPaymentElements(c25231_0) {
|
|
let c25231_2;
|
|
c25231_2 = void 0;
|
|
let r27 = c25231_0;
|
|
if (r27 === void 0) {
|
|
r27 = {};
|
|
}
|
|
let c29398_0 = r27;
|
|
await void 0;
|
|
return (await HTTP.post({
|
|
url: Endpoints.BILLING_STRIPE_SETUP_INTENT_SECRET_FOR_PAYMENT_ELEMENTS,
|
|
oldFormErrors: true,
|
|
rejectWithError: true,
|
|
failImmediatelyWhenRateLimited: true,
|
|
...c29398_0
|
|
})).body;
|
|
}
|