Files
discord-decomp/_bundle/Module6342.js
T
2026-11-01 12:12:55 +02:00

51 lines
1.5 KiB
JavaScript

// Metro module 6342 (f6343).
import { NativeModules } from "react-native";
import { enhancedFetch } from "./Module6336";
let c4039_0;
let c4040_0;
let env4037 = {};
const RNIapAmazonModule = NativeModules.RNIapAmazonModule;
let c4038_0 = async (c25814_0) => {
let c25814_2;
let c29745_3, c29745_4;
c25814_2 = void 0;
c29745_3 = void 0;
let c29745_0 = c25814_0.developerSecret;
let c29745_1 = c25814_0.userId;
let c29745_2 = c25814_0.receiptId;
const useSandbox = c25814_0.useSandbox;
if (useSandbox !== void 0) {
c29745_3 = useSandbox;
c29745_4 = void 0;
} else {
c29745_3 = true;
c29745_4 = void 0;
}
await void 0;
c29745_4 = `https://appstore-sdk.amazon.com/${c29745_3 ? "sandbox/" : ""}version/1.0/verifyReceiptId/developer/${c29745_0}/user/${c29745_1}/receiptId/${c29745_2}`;
return await enhancedFetch(c29745_4);
};
c4039_0 = void 0;
c4039_0 = async () => RNIapAmazonModule.verifyLicense();
c4040_0 = void 0;
c4040_0 = async (c25816_0) => {
let c25816_2;
c25816_2 = void 0;
let c29746_0 = c25816_0.isAmazonDevice;
await void 0;
return RNIapAmazonModule.deepLinkToSubscriptions(c29746_0);
};
export { RNIapAmazonModule as AmazonModule };
export function validateReceiptAmazon(a0) {
const apply = c4038_0.apply;
return c4038_0.apply(this, arguments);
}
export function verifyLicense() {
const apply = c4039_0.apply;
return c4039_0.apply(this, arguments);
}
export function deepLinkToSubscriptionsAmazon(a0) {
const apply = c4040_0.apply;
return c4040_0.apply(this, arguments);
}