Skip to content

paypal/paypal-card-components

Repository files navigation

Hosted Fields Component

build status code coverage npm version apache license

Hosted Fields component to be included in the Payments SDK

Quick start

See src/index.js

Tests

  • Run the tests:

    npm test

Testing with different/multiple browsers

npm run karma -- --browser=PhantomJS
npm run karma -- --browser=Chrome
npm run karma -- --browser=Safari
npm run karma -- --browser=Firefox
npm run karma -- --browser=PhantomJS,Chrome,Safari,Firefox

Keeping the browser open after tests

npm run karma -- --browser=Chrome --keep-open

Releasing and Publishing

  • Publish your code with a patch version:
npm run release
  • Or npm run release:patch, npm run release:minor, npm run release:major