TransactionWithSlimCDApp

  • DEFINITION

    Method

    SlimCD.Launch.TransactionWithSlimCDApp


    Purpose

    Launches the Slim CD app to accept payments.


    Description

    Allows developers to utilize the Slim CD app’s ability to accept swiped or keyed transactions, capture signatures and print receipts.


    Business Rules

    Developers can use our apps to avoid touching cardholder data while obtaining payments.  Options allow the developer to control the display of sales tax, tip, signature and receipt screens.


    Argument List

    Name Required Usage
    xSource Required String containing a user-displayable name for the calling app
    xSuccess Required String containing the URL to launch at the end of processing
    TransactionConfig Required Object containing configuration ostems
    TransactionRequest Required Object containing transaction-specific items

    Request Fields

    Reply Fields

    Reply Hierarchy

    Remarks

  • .NET 4.5

    Include

    Method

    Request

    Reply

    Sample Code

    SAMPLE CODE to Retrieve the TransactionReply when your app is RE-LAUNCHED by the SLIM CD APP:

    Reply Output is in XML format.

    Status Codes

    Downloads

    Download full sample source.


     

  • Include

    Method

    Config

    Request

    Reply

    Sample Code

  • Method

    Request

    Reply

    Sample Code

    Downloads

     

    Method To Launch Application

    Sample Code


  • Scheme

    [scheme]://[host]/[action]?[x-callback parameters]&[action parameters]

    scheme – The scheme should be a unique string identifier the target app.  For Slim CD, this is app.slimcd.com:

    host – URLs will be identified by the use of “x-callback-url” as the host portion of the URL, per the x-callback-url standard.

    action – The name of the action to be executed in the target app, currently Slim CD only supports ProcessTransaction


    x-callback parameters

    x-source – An arbitrary string that describes the calling app.  This is used to describe the calling app in any UI that may be presented by the SlimCD mobile app.


    x-success – This string defines a URL to call to return control back to the calling app. Note that this URL will be called as specified, but any additional parameters required to return data back to the calling app from the requested action will be appended onto the end of this URL when it is called.    We recommend the calling app also follow the x-callback-url standards.


    action-parameters

    Slim CD combines the data from two data structures to make the full list of action parameters.  The “config” structure defines the configuration controls for the app and areprefixed with “cfg-” for each fieldname.  The “request” structure define the per-transaction data for the individual transaction to be performed.  The non-empty values from both structures are converted into standard URL fieldname/value pairs with ampersand separating the fields.  The results are concatenated together to make the full set of action parameters. Please see the Definition tab for the definitions of each object’s properties.


    Slim CD Example

    The structure of a URL to launch the SlimCD mobile app is as follows:

    app.slimcd.com://x-callback-url/<action> ? <x-callback-parameters> & <configuration-parameters> & <request-parameters>

    Note that it is assumed that the above URL is a single string, with no spaces and with all appropriate values URL encoded as necessary to make it a valid URL.