iaptic-js
    Preparing search index...

    Function createAdapter

    • Creates an Iaptic adapter for the specified payment platform

      Parameters

      • config: Config

        Configuration options for the adapter

      Returns IapticStripe

      An initialized adapter instance

      Error if the specified adapter type is not supported

      const iaptic = createAdapter({
      type: 'stripe',
      appName: 'my-app',
      apiKey: '1234567890',
      stripePublicKey: 'pk_test_...'
      });