Download the PHP package muzik/esafe-php-sdk without Composer

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

ESafe PHP SDK

Unofficial PHP SDK for 紅陽支付, made by Muzik Air.

注意事項

  1. 紅陽支付因設計上的缺陷,故無法由 PHP 端送出交易
    • 需要另外由前端實作送出交易的功能
      • 前端若需要計算 ChkValue 時,請務必交給後端程式計算,否則將會暴露交易密碼
    • 本 SDK 著重於接受紅陽之 WebHook 功能(後台顯示名為「交易成功接收網址」、「交易失敗接收網址」與「交易回傳確認網址」)
  2. 部份功能需與紅陽支付另外申請
    • Taiwanpay 支付方式
    • 電子發票(捐贈碼與統一編號功能)

Installation

Usage

處理交易時 Web Hook

確認交易狀況

進行退款處理

Available Handlers

  1. 所有支付方式都有「交易結果」
  2. 對於非同步付款(見下註)的支付方式,會增加一個「付款結果」
    • 超商條碼
    • 超商代碼
    • 虛擬銀行帳號
    • 貨到付款

非同步付款:消費者於交易結果產生後才進行付款。

消費者購買商品 => 商店產生交易結果(內含超商條碼) => 消費者憑交易結果之超商條碼繳費 => 商店取得付款結果

Refund 注意事項

Check 注意事項

錯誤處理

本 SDK 只會拋出三種例外

License

This library is under MIT license.


All versions of esafe-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4
guzzlehttp/guzzle Version ^6.4
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 muzik/esafe-php-sdk contains the following files

Loading the files please wait ....