Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Libwebtopay Laravel Package

webtopay/libwebtopay

The WebToPay PHP library integrates Paysera’s Checkout API for collecting online payments via many methods and validating transferred/received security parameters. Install via Composer or the all-in-one WebToPay.php file.

View on GitHub
Deep Wiki
Context7

lib-webtopay

The Checkout API (Payment Gateway API) allows for the collection of online payments with many payment methods. The Checkout API is easy to integrate – simply use one of our methods and the checkout processes will be performed automatically. The library can be used to check all the necessary security parameters of transferred and received data. More information can be found in the documentation.

Installation

Easiest way to use library is to include merged all-in-one file. It is located in base libwebtopay directory, "WebToPay.php". In this case you only need this one file. Example:

<?php

require_once('WebToPay.php');

Alternatively, you can use files in the "src" folder. Either set-up autoloader or include file "includes.php" in "src" directory. Example:

<?php

require_once('libwebtopay/src/includes.php');
// Your code goes here

Another way to install library is using composer:

// to install the latest version
"composer require webtopay/libwebtopay

// to install the oldest supported version (in some projects)
"composer require webtopay/libwebtopay "^1.6"

// to install version with new interface
"composer require webtopay/libwebtopay "^2.0"

And then:

<?php

use WebToPay;

Pay attention that the ^3.0 version has the same interface as the ^2.0 but newest one is brought up to PHP 7.4 standards and code style like strict_types, type hints etc

Testing

$ bash run_tests.sh
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource