Download the PHP package unquam/ing-web-pay-sdk without Composer

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

IngWebPay SDK for PHP

License: MIT Packagist Version

ING Logo

This SDK provides a simple PHP integration with the ING WebPay payment gateway. It allows you to initialize payment orders, send requests, and check order statuses.

Features

Installation

You can install the SDK via Composer:

SDK version: v1.0.0

If you're using this SDK as a Laravel package, publish the configuration file using Artisan:

Composer Autoload

This SDK supports Composer autoloading.
If you installed the package via Composer, it will be automatically loaded by Composer's autoloader, so you can use the classes without manual require or include.

If you're not using Laravel, make sure to include Composer's autoload:

Configuration File Example (config/ing-web-pay.php)

This will copy the default config file to your Laravel project's config/ing-web-pay.php, where you can customize credentials and URLs.

Configuration

Key Description Example
username Your IngWebPay username "myuser"
password Your IngWebPay password "mypassword"
return_url URL where the user will be redirected after payment "https://your-site.com/return"
post_action WebPay payment initiation URL env('ING_TEST_INDICATOR', 1) ? 'https://securepay-uat.ing.ro/mpi_uat/rest/register.do' : 'https://securepay.ing.ro/mpi/rest/register.do'
order_status WebPay order status query URL env('ING_TEST_INDICATOR', 1) ? 'https://securepay-uat.ing.ro/mpi_uat/rest/getOrderStatusExtended.do' : 'https://securepay.ing.ro/mpi/rest/getOrderStatus.do'
certificate Optional path to SSL certificate for verification "/path/to/ChainBundle2.crt"
protocol Set protocol http or https env('APP_PROTOCOL', 'https://')
check_amount Check amount 1 (check amount) or 0 (otherwise)
language Choise language ro for Romanian en for English
test_indicator Set to 1 to disable SSL verification for testing 1 (test) or 0 (production)

Environment Variables (.env)

Configure the following variables in your .env file to set up the SDK properly:

Example Usage

Here's a simple example demonstrating how to initialize a payment using the IngWebPayGateway:

Currency Format

Retrieving Payment Status

After the customer completes (or fails to complete) the payment, ING will redirect them to your return_url. In that return handler, you can retrieve the payment status using the getOrderStatus method and take action accordingly.

Here's an example how to use getOrderStatus:

Payment Status Response Structure

When calling getOrderStatus($orderId), the SDK returns an associative array with detailed information about the transaction.

Example Response:

Order Status Codes

The following table describes possible orderStatus values returned by getOrderStatus():

Code Description (RO) Description (EN)
0 Comanda înregistrată, dar neplătită Order registered, but not yet paid
1 Plată preautorizată (pentru tranzacții în 2 pași) Pre-authorized payment (for 2-step transactions)
2 Tranzacție autorizată Payment authorized (successful)
3 Tranzacție anulată Transaction canceled
4 Tranzacție reversată Transaction refunded
5 Tranzacție inițiată prin sistemul ACS al băncii emitente Transaction initiated via the issuer bank's ACS
6 Tranzacție respinsă Transaction failed

Test Card Details

You can use the following test card details when running in test mode (ING_TEST_INDICATOR=1).
These cards are only valid in the test environment provided by ING WebPay.

Field Value
Card Number 4662861119116040
Expiration Date Any future date (e.g. 05/29)
CVV 203
Cardholder Name Any name (e.g. ING VISA)

⚠️ Make sure you're using the UAT endpoint:
https://securepay-uat.ing.ro/mpi_uat/rest/register.do
by setting ING_TEST_INDICATOR=1 in your .env file.

License

Disclaimer: This software is provided "as is" without any warranty.
The authors are not responsible for any damages or losses arising from its use.

This project is licensed under the MIT License. See the LICENSE file for details.

💼 Commercial Support & Development

This SDK is actively maintained and ready to grow.

If you're using ING WebPay in your PHP/Laravel project and want:

Feel free to open an issue
or contact us directly at [email protected]

We’re open to partnerships and happy to evolve this SDK to better fit real-world use cases.


All versions of ing-web-pay-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.2
ext-iconv Version *
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 unquam/ing-web-pay-sdk contains the following files

Loading the files please wait ...