Stella Platform Documentation

Stella Platform Documentation

  • Docs
  • Procedures
  • Reference
  • FAQ
  • Bot API
  • API
  • Languages iconEnglish
    • 中文

›Integrations

Overview

  • Documentation Guide

Get Started

  • Introduction
  • Recent Updates
  • Best Practices
  • Chatbot Template

Bot Builder

  • Workspace
  • Node
  • Attachment ID

Node Inspector

  • Tree ID & Composite ID
  • Basic Information
  • Triggers
  • Responses
  • Actions
  • Redirect
  • Member Tagging
  • Analytics
  • NLP
  • Advance

Facebook

  • Message Types
  • Button Types
  • Persistent Menu
  • Access Token
  • One-Time Notification
  • N-Time Notification (Beta)

Instagram

  • Message Types

WhatsApp

  • Overview
  • Setup Procedure
  • Message Types

Web Chat

  • Overview
  • Message Types
  • Button Types

WeChat

  • Message Types

Slack

  • Message Types

Telegram

  • Message Types

Integrations

  • Dialogflow
  • Stripe
  • LUIS
  • Custom Inbox Integration

Data Source

  • Data Source

Media Library

  • Media Library

Channels

  • Overview
  • Webhooks
  • Channel-wide Metadata
  • Business Availability
  • Facebook
  • Instagram
  • Web Chat
  • WhatsApp
  • WeChat
  • Slack (Public App)
  • Slack (Custom App)
  • Teamwork
  • Zendesk
  • Custom Platform

Analytics

  • Members
  • Dashboard
  • PSID

Settings

  • Overview
  • Locale
  • Pairing Channels
  • Role-based Access Control
  • Access Token
  • Audit Trail

Push Panel

  • Push Content
  • Audience
  • Analytics

Log

  • Log

Stripe

Integration interface: select Stripe

Pay attention to this if you are making an e-commerce chatbot for your business: you can enable Stripe integrations on Stella to handle online payment on chatbot. By enabling such function, your chatbot will be able to ask your users to input their payment info and save it down for repeated purchase.


Stripe Setup

Input Stripe details on Stella
  1. Input the Name of the Stripe integration, Public Key and Secret Key of your Stripe account. You can just randomly give a name to your integration.

Select API keys under Developer on menu
  1. Go to your Stripe account and on the left side menu, click API keys under Developers.

Locate keys on Stripe
  1. On the right workspace, you will be able to find Publishable key and Secret key which you could paste them back on Stella.
PropertyDescription
NameA name you randomly give to your integration
Public KeyPublishable key
Secret KeySecret key

Successful integration on Stella
  1. Click the "Create" button to save the credentials and you will have a successful Stripe integration listed on Stella.

Getting Hands On

  1. Go back to node inspector and edit the node that triggers the payment action.

  2. Put the following example code in the pre-action to access the specific Stripe account:

Example to connect to Stripe payment:

return new Promise(async (resolve, reject) => {
  try {
    const stripe = await this.stripe({ channel: this.channel, stripeName: "YOUR STRIPE INTEGRATION NAME ON STELLA" })
    try {
      const charge = await stripe.charges.create({
        amount: 38 * 100,
        currency: 'hkd',
        customer: this.member.meta.stripeCustomerId,
        description: "YOUR PRODUCT NAME",
        receipt_email: this.member.meta.email,
      })
      resolve({
        "type": "TEXT",
        "text": "Thank you fo your payment."
      })
    } catch (err) {
      resolve({
        "type": "TEXT",
        "text": `Sorry. ${err.message}`
      })
    }
  } catch (e) {
    reject(e)
  }
})
PropertyDescriptionRequired?
stripeNameThe name of your Stripe integration on StellaY
amountMust be an integer; the unit of measurement is "cent"Y
currencyThe currency of the productY
customerThe customer ID on StripeY
descriptionThe name of your productY
receipt_emailThe email to receive the payment receiptN

Remarks:

  • You may refer to the documentation of Create A Charge on Stripe for more details.
Please note that the amount must be an integer and the unit is "cent". For example, if your list price is $200, you should input "200 * 100". If your list price is $0.99, you should just input "99".
← DialogflowLUIS →
  • Stripe Setup
  • Getting Hands On
Stella Platform Documentation
Docs
Get StartedBot API ReferenceAPI ReferenceStandard Procedures
Community
FAQUser ShowcaseChat with Us
Copyright © 2023 Sanuker Inc. Limited