Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion libraries/expo-iap/example/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# IAPKit Configuration
# Get your API key from https://iapkit.com
# Get your API key from https://kit.openiap.dev
EXPO_PUBLIC_IAPKIT_API_KEY=your_iapkit_api_key_here
2 changes: 1 addition & 1 deletion libraries/expo-iap/example/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default ({config}: ConfigContext): ExpoConfig => {
'../app.plugin.js',
{
// IAPKit API key for server-side receipt verification
// Get your API key from https://iapkit.com
// Get your API key from https://kit.openiap.dev
iapkitApiKey: process.env.EXPO_PUBLIC_IAPKIT_API_KEY,
enableLocalDev: useLocalDev,
localPath: {
Expand Down
2 changes: 1 addition & 1 deletion libraries/expo-iap/plugin/src/withIAP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ const withIapIOS: ConfigPlugin<WithIapIosOptions | undefined> = (
export interface ExpoIapPluginOptions {
/**
* IAPKit API key for server-side receipt verification.
* Get your API key from https://iapkit.com
* Get your API key from https://kit.openiap.dev
* This will be available via `Constants.expoConfig?.extra?.iapkitApiKey`
*/
iapkitApiKey?: string;
Expand Down
2 changes: 1 addition & 1 deletion libraries/flutter_inapp_purchase/example/env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# IAPKit API Key for purchase verification
# Get your API key from https://iapkit.com
# Get your API key from https://kit.openiap.dev
IAPKIT_API_KEY=your_iapkit_api_key_here
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:flutter_dotenv/flutter_dotenv.dart';
// Product IDs for testing in the example app
class IapConstants {
// IAPKit API Key for purchase verification
// Get your API key from https://iapkit.com
// Get your API key from https://kit.openiap.dev
static String get iapkitApiKey => dotenv.env['IAPKIT_API_KEY'] ?? '';

// Consumable Product IDs
Expand Down
2 changes: 1 addition & 1 deletion libraries/kmp-iap/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# IAPKit API Key for purchase verification
# Get your API key from https://iapkit.com
# Get your API key from https://kit.openiap.dev
IAPKIT_API_KEY=your_iapkit_api_key_here
2 changes: 1 addition & 1 deletion libraries/kmp-iap/example/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# IAPKit Configuration
# Get your API key from https://iapkit.com
# Get your API key from https://kit.openiap.dev
IAPKIT_API_KEY=your_iapkit_api_key_here
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package dev.hyo.martie.config
expect object AppConfig {
/**
* IAPKit API key for purchase verification.
* Get your API key from https://iapkit.com
* Get your API key from https://kit.openiap.dev
*/
val iapkitApiKey: String
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
// Copy this file to Secrets.xcconfig and add your API keys

// IAPKit API Key for purchase verification
// Get your API key from https://iapkit.com
// Get your API key from https://kit.openiap.dev
IAPKIT_API_KEY=your_iapkit_api_key_here
2 changes: 1 addition & 1 deletion libraries/react-native-iap/example-expo/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# IAPKit Configuration
# Get your API key from https://iapkit.com
# Get your API key from https://kit.openiap.dev
EXPO_PUBLIC_IAPKIT_API_KEY=your_iapkit_api_key_here
2 changes: 1 addition & 1 deletion libraries/react-native-iap/example-expo/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default ({config}: ConfigContext): ExpoConfig => {
'react-native-iap',
{
// IAPKit API key for purchase verification (optional)
// Get your API key from https://iapkit.com
// Get your API key from https://kit.openiap.dev
iapkitApiKey: process.env.EXPO_PUBLIC_IAPKIT_API_KEY,

// iOS Alternative Billing configuration (optional)
Expand Down
2 changes: 1 addition & 1 deletion libraries/react-native-iap/example/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# IAPKit Configuration
# Get your API key from https://iapkit.com
# Get your API key from https://kit.openiap.dev
IAPKIT_API_KEY=your_iapkit_api_key_here
2 changes: 1 addition & 1 deletion libraries/react-native-iap/plugin/src/withIAP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ type IapPluginProps = {
/**
* IAPKit API key for purchase verification.
* This key will be added to AndroidManifest.xml (as meta-data) and Info.plist.
* Get your API key from https://iapkit.com
* Get your API key from https://kit.openiap.dev
*/
iapkitApiKey?: string;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/apple/Sources/OpenIapModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ public final class OpenIapModule: NSObject, OpenIapModuleProtocol {
// but it is never invoked from this module.
private func verifyPurchaseWithIapkit(props: RequestVerifyPurchaseWithIapkitProps) async throws -> RequestVerifyPurchaseWithIapkitResult {
// URL is a constant and cannot fail, so force unwrap is safe
let url = URL(string: "https://api.iapkit.com/v1/purchase/verify")!
let url = URL(string: "https://kit.openiap.dev/v1/purchase/verify")!

// On Apple, only Apple verification is supported
guard props.apple != nil else {
Expand Down
27 changes: 26 additions & 1 deletion packages/docs/src/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { DarkModeToggle } from './DarkModeToggle';
import { Menu, X } from 'lucide-react';
import { FaGithub, FaSearch } from 'react-icons/fa';
import { openSearchModal } from '../lib/signals';
import { LOGO_PATH } from '../lib/config';
import { IAPKIT_URL, LOGO_PATH, trackIapKitClick } from '../lib/config';

function Navigation() {
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
Expand Down Expand Up @@ -96,6 +96,17 @@ function Navigation() {

<DarkModeToggle />

{/* IAPKit Link */}
<a
href={IAPKIT_URL}
target="_blank"
rel="noopener noreferrer"
className="iapkit-link"
onClick={trackIapKitClick}
>
IAPKit
</a>
Comment thread
hyochan marked this conversation as resolved.

{/* GitHub Link */}
<a
href="https://github.com/hyodotdev/openiap"
Expand Down Expand Up @@ -169,6 +180,20 @@ function Navigation() {
Sponsors
</NavLink>
</li>

<li>
<a
href={IAPKIT_URL}
target="_blank"
rel="noopener noreferrer"
onClick={() => {
trackIapKitClick();
closeMobileMenu();
}}
>
IAPKit
</a>
</li>
</ul>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const LOGO_PATH = '/logo.webp';
// IAPKit Configuration
// =============================================================================

export const IAPKIT_URL = 'https://iapkit.com';
export const IAPKIT_URL = 'https://kit.openiap.dev';
export const IAPKIT_AD_BANNER_URL =
'https://www.hyo.dev/api/ad-banner/cmjf0l27p0004249h2blztbct';

Expand Down
4 changes: 2 additions & 2 deletions packages/docs/src/pages/docs/example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ xcodebuild -project Martie.xcodeproj \\
className="external-link"
onClick={trackIapKitClick}
>
iapkit.com
kit.openiap.dev
</a>{' '}
and configure it in <code>Info.plist</code>:
<pre
Expand Down Expand Up @@ -574,7 +574,7 @@ adb install Example/build/outputs/apk/debug/Example-debug.apk`}</pre>
className="external-link"
onClick={trackIapKitClick}
>
iapkit.com
kit.openiap.dev
</a>{' '}
and configure it in <code>local.properties</code>:
<pre
Expand Down
Loading
Loading