Download the PHP package winpay/laravel-sdk without Composer

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

Winpay Laravel SDK

Library Laravel resmi untuk Winpay Payment Gateway — integrasi SNAP API & Checkout Page.

Requires: PHP ^8.1, Laravel ^9.0 | ^10.0 | ^11.0

Install

Service provider & facade terdaftar otomatis via auto-discovery.

Konfigurasi

Environment Variables (.env)

Key bisa inline PEM string atau path file:

Publish Config (opsional)

Cara Pakai

Via Facade

Via Dependency Injection

Response Format

Semua method mengembalikan Winpay\Core\Models\WinpayResponse:


Services

Gunakan Winpay::snap() untuk akses semua channel dengan verb konsisten:


Virtual Account

Bank Channel (VaChannel)

BRI, BNI, MANDIRI, MANDIRI_PC, PERMATA, BSI, MUAMALAT, BCA, CIMB, SINARMAS, BNC, MAYBANK

VA Type (VaType)

Enum Value Keterangan
VaType::ONE_OFF c Dibayar sekali, closed setelah dibayar
VaType::OPEN_RECURRING o Bisa dipakai berulang, nominal bebas
VaType::CLOSE_RECURRING r Bisa dipakai berulang, nominal tetap

QRIS


E-Wallet

Channel (EwalletChannel)

Enum Value
EwalletChannel::SPEEDCASH SC
EwalletChannel::OVO OVO
EwalletChannel::DANA DANA
EwalletChannel::SHOPEEPAY SPAY
EwalletChannel::ASTRAPAY ASTRA

Credit Card


Retail / OTC

Channel (RetailChannel)

Enum Value
RetailChannel::ALFAMART ALFAMART
RetailChannel::INDOMARET INDOMARET
RetailChannel::FASTPAY FASTPAY

Report


Checkout Page

Gunakan HMAC-SHA256 signature dengan header X-Winpay-Key, X-Winpay-Timestamp, X-Winpay-Signature.


Callback / Webhook

Routes terdaftar otomatis saat provider di-boot. Bisa disable dengan:

Endpoint

Method URL Handler Channel
POST /api/winpay/callback/v1.0/transfer-va/payment vaPayment() VA
POST /api/winpay/callback/v1.0/qr/qr-mpm-notify qrisNotify() QRIS
POST /api/winpay/callback/v1.0/debit/notify debitNotify() eWallet / CC

Setiap callback akan:

Custom Prefix

Listening Event


Error Handling


Transaction Status (TransactionStatus)

Enum Value Arti
TransactionStatus::SUCCESS 00 Sukses
TransactionStatus::INITIATED 01 Initiated
TransactionStatus::PAYING 02 Sedang dibayar
TransactionStatus::PENDING 03 Pending
TransactionStatus::REFUNDED 04 Refund
TransactionStatus::CANCELED 05 Dibatalkan
TransactionStatus::FAILED 06 Gagal
TransactionStatus::NOT_FOUND 07 Tidak ditemukan

Testing


All versions of laravel-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
winpay/core Version ^1.0
illuminate/support Version ^9.0|^10.0|^11.0
guzzlehttp/guzzle Version ^7.2
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
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 winpay/laravel-sdk contains the following files

Loading the files please wait ...