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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@worldpay/access-worldpay-checkout-react-native-sdk

v3.0.0

Published

Worldpay Access Checkout SDK for ReactNative

Downloads

815

Readme

Access Checkout React Native SDK

Take payments and still qualify for SAQ-A – the lowest PCI compliance level – with our React Native SDK. Create your own uniquely styled and branded checkout form by integrating our React Native SDK into your native app.

This SDK is the first step to integrate with our Access Worldpay APIs into a React Native app. It is designed to simplify the integration of the following functionality in your checkout form:

  • validating the format of the card details entered by a customer
  • generating a session (short-lived token representing a customer's card details)

Documentation

You can find the detailed documentation explaining how to integrate the SDK and use a session to take a payment starting with the React Native section of the Access Worldpay Checkout documentation.

Compatibility

  • React Native 0.70.0 and above
  • React 18.1.0 and above
  • Cocoapods only for iOS dependencies

SAQ-A Compliance

To support SAQ-A compliance when using our React Native SDK, we have created a new component called AccessCheckoutTextInput: It has been designed so that it does not expose any methods or properties to retrieve the text entered by the end user to ensure our merchants applications do not have direct access to card details and are SAQ-A compliant.

AccessCheckoutTextInput

You can find detailed documentation about our new component AccessCheckoutTextInput within the React Native section of the Access Worldpay Checkout documentation.

How to install

Refer to Get our SDK in the React Native section of the Access Worldpay documentation

Features

The SDK offers you the following features:

For card payments

Card session

Creates a session which you must use to take a payment using the Access Worldpay APIs.

CVC session (optional)

Creates a CVC session which you may want to use for additional security as part of taking a payment using the Access Worldpay APIs.

Card details validation

Validates the format of the card details to ensure that the card number, expiry date and CVC have been entered correctly by a customer prior to submitting them. The card number is validated using the Luhn algorithm.

Card brand detection

Allows you to listen to events indicating which card brand corresponds to the card number entered by a customer. The following major card brands are supported:

  • American Express
  • Diners
  • Discover
  • JCB
  • Maestro
  • Mastercard
  • Visa

Card number formatting (optional)

Formats a card number as the customer types to make it easier to enter and read a card number.

Card brands restriction (optional)

Changes the behavior of the validation feature to consider only the card brands that you want to support as valid.

For CVC only payments

Paying only with CVC is possible with the Access Worldpay APIs using a Verified Token. Verified tokens are long-lived tokens representing a customer's card details which are valid for 4 years. You would typically save these in your database as part of a first card payment in a repeat agreement.

CVC validation

Validates the format of the CVC entered by a customer to ensure it appears valid prior to submitting it.

Hooks

useAccessCheckout()

Use this hook to get 2 functions:

  • one function used to initialize the validation of payment form
  • one function used to generate card and/or cvc session(s)

Full code samples