Alpha DevCon 2018
Results 1 to 4 of 4

Thread: Stripe API

  1. #1
    Member
    Real Name
    Scott Binger
    Join Date
    Oct 2011
    Posts
    286

    Default Stripe API

    Happy New Year All,

    I'm implementing the Stripe API on a project (via Action Javascript - which is very easy). Just wondering if anyone has experience with the API and recurring payments. This is for a SaaS project in which customers will be subscribing on a monthly basis.

    Thanks,
    Scott

  2. #2
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    6,733

    Default Re: Stripe API

    Stripe under Alpha was never fully implemented... only the very basics were exposed and have Actions.

    Settings up Subscriptions within the Stripe Website is very straight forward... but then you need to put together the Node.JS functionality to work with those Subscriptions. It gets tricky because Alpha lets you define Node.JS at a Global Level and at a Project Level. The last time I implemented Stripe Subscriptions I found some Stripe functionality would work only under Global and some only under Project... it was a mess to get straight.

  3. #3
    Member
    Real Name
    Alex
    Join Date
    Oct 2015
    Location
    Perth, WA Australia
    Posts
    100

    Default Re: Stripe API

    https://stripe.com/docs/subscriptions/quickstart

    you could use curl to implement a create and manage subscriptions on the fly.

    or create node api implementation using Node Services and call it from an Xbasic Class or Function via the UX

    Alpha Integration (Action Javascript) is simply just calling a Node Service called "stripeChargesCreate". as seen below

    function stripeCheckout_cd1332f530d74d20a86fb29af2480a15 as c(e as p)
    DIM p as P
    DIM p.appType as C = "Test"
    DIM p.testSecretKey as C = "4453645"
    DIM p.liveSecretKey as C = "3132133"


    dim n as Helper::V8
    dim p2 as p
    p2._id = api_uuidcreate()
    p2._command = "stripeChargesCreate"
    p2._tokenId = e.token

    dim skey as c
    if p.appType = "Test" then
    skey = p.testSecretKey
    else
    skey = p.liveSecretKey
    end if
    p2._key = skey
    p2._amount = e._state.charge.amount
    p2._description = e._state.charge.description
    p2._currency = e._state.charge.currency

    dim jsonCmd as c
    jsonCmd = json_generate(p2)

    dim result as c
    result = n.NodeRequest(jsonCmd)
    stripeCheckout_cd1332f530d74d20a86fb29af2480a15 = "{dialog.object}._stripeResults ="+result+";A5.stripe.results="+result+";"

    end function
    Alex Collier

    "Give a man a fish and you will feed him for a day; teach a man to fish and he will eat forever."

    Version 12.4.5.2 Build 4770 >> Deploying to IIS 8.5 on Windows 2012 R2 Server in AWS

  4. #4
    "Certified" Alphaholic CharlesParker's Avatar
    Real Name
    Charles Parker
    Join Date
    Dec 2012
    Location
    New Orleans, LA
    Posts
    1,815

    Default Re: Stripe API

    Stripe under Alpha was never fully implemented... only the very basics were exposed and have Actions.
    Wish List 2018...
    NWCOPRO Nuisance Wildlife Control Software-My Application: http://www.nwcopro.com OR my Developer Chat
    Disconnected apps are easy to understand. An internet-enabled app is like a long cat, you pull the tail on one device in New York and the cat meows in New Orleans. In the case of a disconnected app, there just isn't a cat and the meow is familiar.

Similar Threads

  1. Incorporate Stripe CC processing in v.11?
    By SCJBF in forum Application Server Version 11 - Web/Browser Applications
    Replies: 4
    Last Post: 09-04-2017, 07:52 PM
  2. Stripe Currency Symbol
    By jrmplus in forum Mobile & Browser Applications
    Replies: 12
    Last Post: 08-15-2017, 06:19 PM
  3. Stripe and cURL
    By lilmofo812 in forum Mobile & Browser Applications
    Replies: 2
    Last Post: 06-30-2016, 10:58 PM
  4. Stripe Connect or Authorize.net
    By dfricke10 in forum Mobile & Browser Applications
    Replies: 4
    Last Post: 06-30-2016, 08:54 PM
  5. Stripe Checkout issue...
    By ydbrown in forum Mobile & Browser Applications
    Replies: 2
    Last Post: 03-19-2016, 01:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •