Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

feedhenry-templates/fh-connector-paypal-cloud

Repository files navigation

FeedHenry PayPal Connector

Dependency Status

The FeedHenry PayPal Connector. For more information on PayPal see: https://github.com/paypal/rest-api-sdk-nodejs.

Group PayPal Connector API

Add card

Create a new card on a PayPal account

Endpoint /cloud/paypal
HTTP Method POST

Request (application/json)

Body
{
  "card": {
    "type": "mastercard",
    "number": "12345678901234",
    "expire_month": "01",
    "expire_year": "1970",
    "cvv2": "123",
    "first_name": "Joe",
    "last_name": "Bloggs"
  }
}

Response 200 (application/json)

Body
{
  "ok": "true"
}

Tests

All the tests are in the "test/" directory. The cloud app is using mocha as the test runner.

Unit tests

npm run unit

or

npm run test

Unit coverage

npm run coverage