🚫 This project is no longer maintained.
This Simple Data Pipe connector boilerplate has been customized for stripe.com OAuth access. You can build your own special purpose connector by implementing the getStripeDataSetList
and fetchRecords
functions in lib/index.js
to fetch the desired data from stripe.com and optionally enrich it.
A valid stripe user id is required to use this connector.
Deploy the Simple Data Pipe in Bluemix using the Deploy to Bluemix button or manually.
This connector does not require any additional Bluemix service.
When you follow these steps to install this connector, add the following line to the dependencies list in the package.json
file:
"simple-data-pipe-connector-oauth-stripe": "git://github.com/ibm-cds-labs/simple-data-pipe-connector-oauth-stripe.git",
You need to register the Simple Data Pipe application before you can use this connector to load data.
-
Open the stripe.com dashboard and log in.
If you don’t yet have an account, sign up. You can try these steps with test data. You can create test data through the UI for the Stripe test environment. See their docs for test card numbers and other simulated parameters.
-
On the upper right of the screen, click Your account > Account Settings.
-
Click the API Keys tab.
-
Note the key value for the data you want to copy to Cloudant. You’ll need this string in the next section.
To retrieve only test data, copy the value in Test Secret Key. To retrieve production data, copy the value in Live Secret Key.
-
Click the Connect tab.
-
If you never connected to an app before, go to the lower left of the screen and click Register your platform. If you have previously connected to an app, click the Platform Settings button, then Register your platform.
-
In the standalone accounts section enter the following information:
- Name of the app. Enter any unique identifier, like My Simple Data Pipe Demo App.
- Website URL (used for reference only) of your Simple Data Pipe application. You can get this URL from the Simple Data Pipe browser window you left open. Just copy and paste the URL from the address bar. It is:
https://<your-simple-data-pipe-host-name>.mybluemix.net
. - Redirect URIs. Enter a value for the Stripe environment in which you’re working: development or production. Your entry will be the same for either one:
https://<your--simple-data-pipe-host-name>.mybluemix.net/authCallback
-
Copy the client_id value for the environment you’re working in: either production or development. You’ll need this string to configure your Stripe data pipes.
-
Click Done.
To configure and run a pipe
- Open the Simple Data Pipe web console.
- Select Create A New Pipe.
- Select Stripe OAuth Data Source for the Type when creating a new pipe.
- In the Connect page, enter the application id and secret from the Stripe account settings page.
- Select the data set (or data sets) to be loaded.
- Schedule or run the data pipe now.
Copyright [2016] IBM Cloud Data Services
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.