- Print
- DarkLight
NEW: Quick integration with NPM library
Retail SDK module of the NPM library
The Retail SDK can be integrated into your React Native project manually - by following the steps listed in the guides below: (Getting Started, Pre-purchase and Purchase) - or by using our NPM library: react-native-ticketmaster-ignite.
https://www.npmjs.com/package/react-native-ticketmaster-ignite | |
---|---|
https://github.com/ticketmaster/react-native-ticketmaster-ignite |
Follow the installation steps from the library's Readme to install and setup the library.
Once done, head out to the Usage section to learn about the IgniteProvider
wrapper needed to finish up the setup phase.
Once your app is wrapped with the IgniteProvider
you can use the RetailSDK
module of the library and its exposed functions: presentPurchase
, presentPrePurchaseVenue
, and presentPrePurchaseAttraction
.
Learn more about the RetailSDK
module here.
Sample implementation:
import { RetailSDK } from 'react-native-ticketmaster-ignite';
const onShowPurchase = async () => {
try {
await RetailSDK.presentPurchase(DEMO_EVENT_ID);
} catch (e) {
console.log((e as Error).message);
}
};
Other SDKs
The library exports other modules as well: AccountsSDK
, useIgnite
(hook for AccountsSDK functionalities), TicketsSdkModal
(iOS only) and TicketsSdkEmbedded
.
See the documentation for the Tickets SDK and Accounts SDK.