Download the PHP package buildrr/tango-raas-api without Composer

On this page you can find all versions of the php package buildrr/tango-raas-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tango-raas-api

Tango Rewards as a Service v2 API for PHP

TangoCard RAAS PHP SDK for RAAS api v2

Refer to Tango Raas API for actual response and requests. https://integration-www.tangocard.com/raas_api_console/v2/

Usage

Initialize the base Tango Object with your API credentials.

$tangocard = new TangoCard('PLATFORM_ID','PLATFORM_KEY');

$tangocard->setAppMode("sandbox"); //Default mode is production.

Valid Values : "production", "sandbox"

Raas API Calls:

All Raas api calls return a stdObject with two properties: status and data The data property contains the response from the RaaS API as an stdObject.

Response Structure:

Buildrr\TangoRaasApi\TangoCardResponse Object
(
    [status] => //contains status of the request : True if api response is 2x else false
    [data] => stdClass Object
        (
            //contains requested data
        )
)

1) Get a list of all Customers

    $tangoCard->getCustomers();

2) Create a new Customer

    $tangoCard->createCustomer($customerIdentifier,$displayName);

3) Get details for a specific Customer

    $tangoCard->getCustomerInfo($customerIdentifier);

4) Get a list of all Accounts created for a specific Customer

    $tangoCard->getCustomerAccounts($customerIdentifier);

5) Create an Account under a specific Customer

    $tangoCard->createCustomerAccount($customerIdentifier,$contactEmail,$displayName,$accountIdentifier);

6) Get a list of Accounts

    $tangoCard->getAccountList();

7) Get details for a specific Account

    $tangoCard->getAccountDetail($accountIdentifier);

8) Fund an Account

    $tangoCard->fundAccount($customerIdentifier,$accountIdentifier,$creditCardToken,$amount);

9) Unregister a Credit Card

    $tangoCard->unregisterCreditCard($customerIdentifier,$accountIdentifier,$creditCardToken);

10) List all credit cards

    $tangoCard->getCreditCardList();

11) Register a new Credit Card

    $tangoCard->registerCreditCard($customerIdentifier,$accountIdentifier,$cardNumber,$verificationNumber,$expiration,$firstName,$lastName,$emailAddress,$addressLine1,$addressLine2,$city,$state,$postalCode,$country,$ipAddress,$label);

12) Get details for a specific Credit Card

    $tangoCard->getCreditCardDetail($creditCardToken);

13) Get all items in the Platform's Catalog

    $tangoCard->getCatalogs();

14) Get a list of Orders

    $tangoCard->getOrderList();

15) Create an Order under a specific Account

    $tangoCard->placeOrder($customerIdentifier,$accountIdentifier,$amount,$utid,$sendEmail,$recipientEmail,$recipientFirstName,$recipientLastName,$campaign,$emailSubject,$message,$notes,$senderEmail,$senderFirstName,$senderLastName,$externalRefID);

16) Get details for a specific Order

    $tangoCard->getOrderDetail($refOrderId);

17) Resend a specific Order

    $tangoCard->resendOrder($referenceOrderID);

All versions of tango-raas-api with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-curl Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package buildrr/tango-raas-api contains the following files

Loading the files please wait ....