Download the PHP package sol-parts/payum-liqpay without Composer

On this page you can find all versions of the php package sol-parts/payum-liqpay. 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 payum-liqpay

Payum LiqPay

Provides LiqPay integration for Payum with two gateway factories:

Supported operations:

Payment flow

The widget factory follows the same path, but instead of the redirect the LiqPay widget is embedded into the page; its JS callback posts the received data/signature back to result_url, where Sync verifies them again.

Authorize creates a hold payment, so the money is locked instead of charged and the store settles it later:

Installation

Usage with PayumBuilder

For the embedded widget use LiqPayWidgetGatewayFactory the same way.

Usage with Symfony PayumBundle

Register the gateway factories:

Configure a gateway:

Options

Option Required Description
public_key yes Merchant public key from the LiqPay dashboard.
private_key yes Merchant private key, used to sign every payload and to verify callbacks.

Templates

Both factories render the hand-over page through the payum.template.obtain_token config option, so the template can be replaced without touching the actions. The widget template shows a loading placeholder translated in the payum_liqpay domain with the English text as the key, so an installation without a translation still renders a sensible Loading…. To localize it, add a payum_liqpay.<locale>.yaml catalogue:

Outside a Symfony full-stack application the widget template additionally needs a Twig instance with the trans filter, while the checkout template works with bare Payum Twig out of the box.

Payment details

ConvertPaymentAction fills amount (major units), currency, description, order_id, version and defaults language to uk.

The checkout request body is built from a whitelist of LiqPay protocol fields (see Api::CHECKOUT_PAYLOAD_FIELDS), so callback leftovers and any extra keys stored in the transaction details never reach the signed payload — a customer retrying a payment always gets a form signed over the current protocol fields only. A rare protocol parameter missing from the list can be added by overriding the constant in an Api subclass.

The signed data/signature pair is a per-render artifact: Api::buildCheckoutPayload() computes it on every hand-over page render and passes it straight to the template — it is never stored back into the transaction details.

Caveats

License

Released under the MIT License.


All versions of payum-liqpay with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-json Version *
ext-mbstring Version *
payum/core Version ^1.7
php-http/discovery Version ^1.14
psr/http-factory Version ^1.0
psr/http-message Version ^1.1|^2.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 sol-parts/payum-liqpay contains the following files

Loading the files please wait ...