Analyzing The Stripe Connection

To build a useful Connector using the Messaging Framework you must know the following: 

  • Source API or datastore from which to send messages to TIBCO Scribe®
  • Events that you want to capture and send to TIBCO Scribe®
  • How the source API works to send Event messages

For the Stripe API, you need to review their API documentation for Events, because this Sample Connector is listening for an Event Message from Stripe.

In this sample project, we walk through creating a Connector that processes a message from Stripe. Stripe messages can be generated every time a new customer is created in that system. Refer to the Stripe Webhooks documentation for additional information.

For the purposes of this sample project, we have provided a sample Stripe JSON message generated by the Customer Create event. Using that message we can configure classes in the Messaging Framework and show how to change the Entity displayed in TIBCO Scribe®. You can also follow the process by watching the Messaging Framework Video.

Stripe Message Sample

{
  "created": 1326853478,
  "livemode": false,
  "id": "evt_00000000000000",
  "type": "customer.created",
  "object": "event",
  "request": null,
  "pending_webhooks": 1,
  "api_version": "2016-07-06",
  "data": {
    "object": {
      "id": "cus_00000000000000",
      "object": "customer",
      "account_balance": 1000,
      "created": 1477492651,
      "currency": "usd",
      "default_source": null,
      "delinquent": false,
      "description": "Test Customer",
      "discount": null,
      "email": "noreply@scribesoft.com",
      "livemode": false,
      "metadata": {
        "Address1": "150 Dow Street",
        "Address2": "5th Floor",
        "City": "Manchester",
        "State": "NH",
        "Postal": "03103"
      },
      "shipping": null,
      "sources": {
        "object": "list",
        "data": [],
        "has_more": false,
        "total_count": 0,
        "url": "/v1/customers/cus_9Rm5PoM2Jt6Kqo/sources"
      },
      "subscriptions": {
        "object": "list",
        "data": [],
        "has_more": false,
        "total_count": 0,
        "url": "/v1/customers/cus_9Rm5PoM2Jt6Kqo/subscriptions"
      }
    }
  }
}

See

Analyzing The Stripe Connection

Starting The Stripe Messaging Framework Project

Generating The Stripe Message Connector Code

Reviewing Sample Stripe Connector Generated Code

Creating Classes For The Stripe Connector