Skip to content

This is a small helper module for React-Native iOS platform to enable and disable apple pay functionalities in the application.

Notifications You must be signed in to change notification settings

mobianglobal/react-native-pass-kit-helper

 
 

Repository files navigation

react-native-pass-kit-helper

Important!

This method requires a special entitlement issued by Apple. If the entitlement is not present, the request will fail. For more information, see Apple Developer - Apple Pay.

Getting started

$ yarn add react-native-pass-kit-helper

Mostly automatic installation React-Native <0.60.0

$ react-native link react-native-pass-kit-helper

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-pass-kit-helper and add PassKitHelper.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libPassKitHelper.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Usage

import PassKitHelper from 'react-native-pass-kit-helper';

// to suppress apple pay

	if (Platform.OS === 'ios') {
		PassKitHelper.suppressApplePay();
	}

// to enable apple pay

 if (Platform.OS === 'ios') {
		PassKitHelper.enableApplePay();
	}

About

This is a small helper module for React-Native iOS platform to enable and disable apple pay functionalities in the application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 40.5%
  • Java 37.6%
  • Ruby 19.2%
  • JavaScript 2.7%