Download the PHP package kechankrisna/php_wing without Composer

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

Wing Online Payment SDKs

Clients for Wing Bank's online payment API (Web SDK v2, spec 2.0.3) in several languages: authorize a payment, send the payer to Wing's payment page, confirm it with the inquiry API, and decrypt the callback Wing pushes after a successful payment.

Folder Package Status
dart/ dart_wing (pub.dev) 1.0.0: authorization, inquiry, callback decryption, tested against the PHP known answers
flutter/ flutter_wing_checkout (pub.dev) 1.0.0: Wing's payment page in a web view, built on dart_wing 1.0.0
php/ kechankrisna/php_wing (Packagist) 1.0.0: authorization, inquiry, callback decryption, tested against the PHP known answers
kotlin/ io.github.kechankrisna:wing-onlinepayment (Maven Central) 1.0.0: Kotlin/JVM, authorization, inquiry, callback decryption, tested against the PHP known answers
node/ @kechankrisna/wing-onlinepayment (npm) 1.0.0: authorization, inquiry, callback decryption, tested against the PHP known answers

For ABA PayWay, see payway-checkout.

How a payment works

  1. Your server calls authorize with the order: the SDK encrypts the payment into payload (AES-256-CBC with your Wing password), signs it into hash, and Wing returns a token.
  2. The payer opens confirmUrl (Wing's payment page) and pays, in a browser, a web view (flutter_wing_checkout) or the Wing Bank app.
  3. Wing redirects to your return_url with status=success (or opens your app's deep link for MOBAPP payments).
  4. Your server calls inquiry and accepts the payment only if the amount is at least your price (isPaid(price)), as Wing requires. Wing can also POST the payment, encrypted, to a callback URL configured on its side: parseCallback decrypts it.

spec/ holds what every SDK must agree on: payloads, hashes and callbacks computed with PHP's openssl_encrypt, the function of the PHP sample in Wing's spec (spec/test-vectors/).

Tested against Wing

The Dart, PHP, Kotlin and Node.js SDKs pass their integration tests against Wing's staging server (https://stage-pm2.wingbank.com): authorization succeeds, and inquiry of an unknown order returns PG-I007 "Reference number not found". flutter_wing_checkout opens Wing's real payment page in a web view on macOS.

Where to run it

Call Wing from your server: the REST API key and the password are secrets, and Wing checks the Referer header against the domain you registered.

Repository layout

See CONTRIBUTING.md for tests and releases.


All versions of php_wing with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
ext-json Version *
ext-openssl Version *
psr/clock Version ^1.0
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.1 || ^2.0
psr/log Version ^2.0 || ^3.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 kechankrisna/php_wing contains the following files

Loading the files please wait ...