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

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

Yuansfer PHP SDK

Latest Stable Version Total Downloads Monthly Downloads License

Yuansfer Online API

Requirements

Installation

  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):

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

IN-STORE API'S

Merchant Presented Workflow

API Call Description
Create QRC API $yuansfer->createTransQrcode() This API generates a QR Code and transaction number for the customer to scan via their digital wallet app, allowing them to initiate the payment process.

Customer Presented Workflow

API Call Description
Add Transaction API $yuansfer->createAdd() This API enables the creation of a transaction object and allows the customer to retrieve a transaction number for initiating payment.
Pay Transaction API $yuansfer->createPrepay() This will allow customers to make the final confirmation before submitting payment which will process through the digital wallet servers.
Cancel API $yuansfer->createCancel() This API allows for canceling a payment transaction in either use case when the transaction is abandoned before submission, ensuring that merchants can efficiently manage their transactions.

REFUND AND QUERY API'S

API Call Description
Refund API $yuansfer->createRefund() In the instance where a customer requests a refund, the following request and response objects are initiated to complete the refund workflow.
Query API $yuansfer->createTranQuery() This API is used for polling transaction results, researching transactions for refunds, and generating custom reports.

ECOMMERCE API'S

Pockyt Hosted Checkout

API Call Description
SecurePay API $yuansfer->createSecurePay() By using this API, the merchant website can send customers to Pockyt to receive payments.

Pockyt Integrated Payments

API Call Description
Process API $yuansfer->createProcess() Utilize our Partner Payment Gateways to accept popular wallets such as PayPal, Venmo, Google Pay, and Apple Pay. When integrating with Partner Payment Gateways, utilize both the 'process' endpoint

Customer Records

API Call Description
Register Customer $yuansfer->createCustomerCreate() Use this API to create a new customer, and receiving the Customer Number from Pockyt, to be invoked during calls to the SecurePay API.
Retrieve Customer $yuansfer->createCustomerRetrieve() Use this API to retrieve the customer information stored in the record, to be used in calls to the SecurePay API.
Update Customer $yuansfer->createCustomerUpdate() Use this API to update information related to the customer's record.

PAYOUTS API'S

Payouts

API Call Description
Register Payee $yuansfer->createPayeeRegister() To initiate payments to your payees, you must first register an account with Pockyt. Send a POST request to the Register Customer endpoint, and you'll receive a customerNo in response.
Retrieve Payee $yuansfer->createPayeeRetrieve() Acquire detailed information about a payee's account by sending a POST request to Pockyt's Retrieve Payee Account API. This enables you to manage and verify payee accounts effectively, maintaining the
Update Payee $yuansfer->createPayeeUpdate() To update payee details such as name, address, email, and bank info by providing customer No and new details. The API returns a confirmation message upon successful execution
Add Payee Bank $yuansfer->createPayeeAddBank() Add a new payment method for the payee, such as a bank account. This endpoint requires the user to provide the Merhcnat ID and the payment details in the request payload.
Transfer Payout $yuansfer->createPayoutPay() To execute a payment, send a POST request to the payments endpoint. Upon successful validation, the specified amount will be transferred to the receiver, completing the payment transaction.

YIP

Official Documents

capture

API Call Description
/order/v4/capture $yuansfer->createYipOrderCapture() To fund a payment with a credit or debit card.

no_vaulting

API Call Description
/online/v4/secure-pay $yuansfer->createYipSecurePay()
PayPal Payment Method $yuansfer->createYipOrderProcess() Call this API when the customer approved the payment order, see HTML Sample code at #line 57
Card Payment Method $yuansfer->createYipOrderProcess() Call this API when the customer approved the payment order, see HTML Sample code at #line 57

with_vaulting

API Call Description
Capture order and save payment methods $yuansfer->createYipSecurePayVault()
Complete the payment transaction $yuansfer->createYipOrderProcess() Call this API when the customer approved the payment order, see HTML Sample code at #line 57
Pay with saved payment methods $yuansfer->createYipSecurePayVaultSaved()

All versions of yuansfer-php-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 yuansfer/yuansfer-php-sdk contains the following files

Loading the files please wait ....