3 min read

Stripe Integration

Iaptic provides comprehensive support for Stripe payments and subscriptions, allowing you to process web-based payments while maintaining the same interface and analytics provided for mobile in-app purchases.

Tutorials

Quick Start

// Initialize iaptic
const iaptic = new IapticStripe({
  stripePublicKey: 'pk_test_...',
  appName: 'com.example.app',
  apiKey: 'your_api_key'
});

// Create checkout session
const response = await iaptic.createStripeCheckout({
  offerId: 'stripe:prod_xyz#price_xyz',
  applicationUsername: 'user123',
  successUrl: 'https://example.com/success',
  cancelUrl: 'https://example.com/cancel'
});

// Store access key
localStorage.setItem('stripe_access_key', response.accessKey);

// Redirect to Stripe
window.location.href = response.url;

See the Getting Started guide for a complete walkthrough.