Download the PHP package yuansfertest/yuansfer-php-test-sdk without Composer

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

Yuansfer PHP SDK

Latest Stable Version Total Downloads Monthly Downloads License

Yuansfer Online API

Requirements

Installation

With Composer (recommended)

  1. Install composer:

    More info about installation on Linux / Unix / OSX and Windows.

  2. Run the Composer command to install the latest version of SDK:

  3. Require Composer's autoloader in your PHP script (assuming it is in the same directory where you installed Composer):

PHAR with bundled dependencies

This is not recommended! Use Composer as modern way of working with PHP packages.

  1. Download PHAR file

  2. Require files:

Please keep in mind that bundled dependencies may interfere with your other dependencies.

Usage

Please see examples

1. Init

2. Create API

3. Set API Parameters

4.1. Send

4.2. Use Test Mode

5. API return JSON, already decoded as array

6. Exceptions when sending

API Documents

Official Documents

Payments

Online Payment

Yuansfer Checkout
API Call Description
secure-pay() $yuansfer->createSecurePay() This is used to pay for an order.
Yuansfer Integrated Payment
API Call Description
process() $yuansfer->createProcess() Braintree Payments
prepay() $yuansfer->createPrepay() This API does the mobile payment for the POS system.

Point of Sale Payment

Scan QR Code
API Call Description
add() $yuansfer->createAdd() This API initiates a Barcode/QR Code Payment request and creates a transaction order.
pay() $yuansfer->createPay() This API places an order in the Barcode/QR Code Payment.

Create QR Code

API Call Description
create-trans-qrcode() $yuansfer->createTransQrcode() This API creates a transaction and get a QR code for customers to scan to pay in the Transaction QR Code Payment process. Customers scan this QR code using the wallet app to checkout.

Transaction Revert

API Call Description
refund() $yuansfer->createRefund() This API refunds the payment of a transaction.
cancel() $yuansfer->createCancel() This API cancels the payment of a transaction.

Transaction Data Search

API Call Description
tran-query() $yuansfer->createTranQuery() This API gets the transaction details by ID of a transaction in the merchant's system.
trans-list() $yuansfer->createTransList() This API gets all transaction details for a given time period.
settle-list() $yuansfer->createSettleList() This API gets all settlement details for a given time period.
withdrawal-list() $yuansfer->createWithdrawalList() This API gets all withdrawal details for a given time period.
data-status() $yuansfer->createDataStatus() This API gets the settlement status for a given date.

All versions of yuansfer-php-test-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
ext-json Version *
nategood/httpful Version ^0.2.20
mobiledetect/mobiledetectlib Version ^2.8
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 yuansfertest/yuansfer-php-test-sdk contains the following files

Loading the files please wait ....