npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@movmo/express-checkout-button

v1.1.7

Published

React component plugin for embedding Movmo Express Checkout on airline websites.

Readme

Movmo Express Checkout Button

A React component for integrating Movmo's Express Checkout functionality into airline websites.

Installation

npm install @movmo/express-checkout-button

or

yarn add @movmo/express-checkout-button

Usage

Basic Example with Pre-saved Offer

If you have already saved the flight offer to Movmo's system and have an offer ID:

import React from 'react';
import { MovmoCheckoutButton } from '@movmo/express-checkout-button';
// Important: Import the styles
import '@movmo/express-checkout-button/dist/index.css';

function MyBookingPage() {
  return (
    <div className="booking-page">
      <h1>Complete your booking</h1>

      <MovmoCheckoutButton
        iataCode="PR"
        apiKey="your-movmo-api-key"
        providerID="amadeus"
        flightOfferID="offer-123-456-789"
        isProd={false} // Set to true for production environment
      />
    </div>
  );
}

export default MyBookingPage;

Example with Raw Flight Offer

If you have the raw flight offer data that needs to be saved when the button is clicked:

import React from 'react';
import { MovmoCheckoutButton } from '@movmo/express-checkout-button';
// Important: Import the styles
import '@movmo/express-checkout-button/dist/index.css';

function MyBookingPage() {
  // Flight offer data retrieved from your booking system (Amadeus, Sabre, etc.)
  const flightOffer = {
    // Your raw flight offer data from the provider
  };

  return (
    <div className="booking-page">
      <h1>Complete your booking</h1>

      <MovmoCheckoutButton
        iataCode="AA"
        apiKey="your-movmo-api-key"
        providerID="sabre"
        flightOffer={flightOffer}
        isProd={false} // Set to true for production environment
      />
    </div>
  );
}

export default MyBookingPage;

Props

| Prop | Type | Required | Description | | --------------- | ------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | | iataCode | string | Yes | The IATA code for the airline | | apiKey | string | Yes | Your Movmo API key | | providerID | string | Yes | The provider identifier (e.g., "amadeus", "sabre", "duffel") | | flightOffer | object | No* | The raw flight offer data object from the provider. Required if flightOfferID is not provided | | flightOfferID | string | No* | The ID of a pre-saved flight offer. Required if flightOffer is not provided | | isProd | boolean | No | Whether to use production endpoints (default: false). When true, uses production API and flights URLs; when false, uses e2e (testing) endpoints |

*Note: Either flightOffer or flightOfferID must be provided, but not both.

Provider Options

The providerID prop accepts provider identifiers as strings. Common providers include:

// Common provider IDs
'amadeus'; // For Amadeus flight data
'sabre'; // For Sabre flight data
'duffel'; // For Duffel flight data
// ... and other supported providers

Environment Configuration

The isProd prop controls which Movmo endpoints are used:

  • When isProd={false} (default):

    • API endpoint: https://e2e.api.movmo.io
    • Flights UI: https://flights.e2e.movmo.io
  • When isProd={true}:

    • API endpoint: https://api.movmo.io
    • Flights UI: https://flights.movmo.io

CSS Integration

You must import the component's CSS for proper styling:

// Import the styles
import '@movmo/express-checkout-button/dist/index.css';

Development

Running Storybook

To run the component in a local development environment with interactive documentation:

# Install dependencies
npm install

# Start Storybook
npm run storybook

This will launch Storybook at http://localhost:6006 where you can explore and interact with the component.

Building the Component

npm run build

Storybook Examples

The Storybook includes several examples:

  1. With Pre-saved Offer ID: Example using a pre-saved flight offer ID
  2. With Raw Flight Offer: Example with raw Amadeus flight offer data that will be saved on button click
  3. Production Environment: Example configured for production environment
  4. Minimal With Offer ID: Minimal configuration example with just the required props

License

MIT