Alpha Video Training
Results 1 to 4 of 4

Thread: Stripe API

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

    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
    7,754

    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
    146

    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

    "The spread of computers and the Internet will put jobs in two categories. People who tell computers what to do, and people who are told by computers what to do"

    AA Builds from 5221_5152 to Pre-releases >> Deploying to IIS in AWS

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

    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 "Without forgetting, we would have no memory at all...now what was I saying?"

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, 08:52 PM
  2. Stripe Currency Symbol
    By jrmplus in forum Mobile & Browser Applications
    Replies: 12
    Last Post: 08-15-2017, 07:19 PM
  3. Stripe and cURL
    By lilmofo812 in forum Mobile & Browser Applications
    Replies: 2
    Last Post: 06-30-2016, 11:58 PM
  4. Stripe Connect or Authorize.net
    By dfricke10 in forum Mobile & Browser Applications
    Replies: 4
    Last Post: 06-30-2016, 09:54 PM
  5. Stripe Checkout issue...
    By ydbrown in forum Mobile & Browser Applications
    Replies: 2
    Last Post: 03-19-2016, 02: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
  •