Download the PHP package cardcash/cardcash-api-sdk-php without Composer

On this page you can find all versions of the php package cardcash/cardcash-api-sdk-php. 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 cardcash-api-sdk-php

CardCash API SDK PHP

This is currently a simple CardCash API SDK written in PHP to assist bulk seller partners in communicating with CardCash Client API.

Dependencies

Install

Package Manager

composer require cardcash/cardcash-api-sdk-php

Requirements

  1. CardCash Bulk Seller Agreement
  2. CardCash X-CC-APP-ID
  3. Bulk Seller Customer Account ( Sandbox can be created via this SDK )
  4. Default Bank Account w/ Default Payment Method for Bulk Seller Customer Account

Methods

Note: All Optional Parameters are set to null or 0.

Order Status

Note: Pending is the only available order status in Sandbox.

Usage

You need to import the CardCash_API library

You need to initialize a new API class API(string appID, Boolean isProduction = false, Boolean debug = false)

To Create new connection to sandbox:

To Create new connection to production:

To debug CardCash Cookies with CardCash help:

IT IS HIGHLY RECOMMENDED TO ALWAYS START WITH A CUSTOMER LOGIN CALL - YOU CAN'T GET YOUR MERCHANT PRICING, SAVE YOUR CART, OR PLACE A ORDER WITHOUT BEING LOGGED IN!

$CC_API->CustomerLogin(emailAddr, pwd);

Examples

Get Orders & Get Cards

Place a Order


All versions of cardcash-api-sdk-php with dependencies

PHP Build Version
Package Version
No informations.
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 cardcash/cardcash-api-sdk-php contains the following files

Loading the files please wait ...