Skip to content

Commit

Permalink
Fixed get_magic_quotes_gpc usage for newer PHP versions, updated links (
Browse files Browse the repository at this point in the history
  • Loading branch information
gsalnis authored Sep 2, 2020
1 parent d7491c9 commit 6564e85
Show file tree
Hide file tree
Showing 8 changed files with 1,282 additions and 1,255 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor
composer.lock
54 changes: 0 additions & 54 deletions README → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,3 @@
This is WebToPay library package.

Requirements
============

You must have PHP version 5.0 or higher


Installing
==========

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');

// Your code goes here

?>

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

?>

Testing
=======

$ cd /path/to/libwebtopay
$ phpunit


Demo
===============

demo_shop is a simple example how you can integrate library to your project.
It also shows how to get payment methods available for your project and specific amount.

Demo needs write permissions to folder /var to function properly.
If you want to test demo online, also change parameters in includes/config.php file to your project's.
If you are testing offline, demos will still work, but webtopay.com will be unable to send callback to your site -
you can login to your account and copy-and-paste the callback link in your browser in that case.


Version history
===============

Expand Down Expand Up @@ -148,4 +95,3 @@ Version 1.1 - 2010-04-14
Version 1.0 - 2010-01-21

* Initial release

52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
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](https://developers.paysera.com/en/checkout/basic).

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
<?php

require_once('WebToPay.php');

// Your code goes here
```
Alternatively, you can use files in the "src" folder.
Either set-up autoloader or include file "includes.php" in "src" directory.
Example:
```php
<?php

require_once('libwebtopay/src/includes.php');

// Your code goes here
```
Another way to install library is using composer:
```
"composer require webtopay/libwebtopay "^1.6"
```

Testing
=======

$ phpunit

Demo
===============

demo_shop is a simple example how you can integrate library to your project.
It also shows how to get payment methods available for your project and specific amount.

Demo needs write permissions to folder /var to function properly.
If you want to test demo online, also change parameters in includes/config.php file to your project's.
If you are testing offline, demos will still work, but webtopay.com will be unable to send callback to your site -
you can login to your account and copy-and-paste the callback link in your browser in that case.
Loading

1 comment on commit 6564e85

@siraj-haddadin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello I need help to add paysera file to my wix site

Please sign in to comment.