Download the PHP package bpotmalnik/lunar-tpay without Composer

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

lunar-tpay

Tpay Open API payment driver for LunarPHP.

The package provides:

Requirements

Installation

Optionally publish translations:

Configuration

The package registers this notification route automatically:

When creating transactions, the adapter sends this URL in Tpay's callbacks.notification.url field. Tpay signs notification bodies using JWS in the X-JWS-Signature header.

Usage

Supported withData() keys:

Key Description
continue_url Tpay success redirect URL.
error_url Tpay error redirect URL. Defaults to continue_url.
notification_url Override the webhook URL sent to Tpay.
description Transaction description.
lang Payment page language. Defaults to TPAY_LANG.
method Optional Tpay payment method. Leave unset for the default Tpay payment page.
group_id Optional Tpay payment group ID, e.g. 150 for BLIK or 103 for card.
channel_id Optional Tpay channel ID.

Notifications

Tpay sends successful payment notifications with data.transactionStatus set to correct. The package:

The controller responds to accepted signed notifications with the literal body expected by Tpay:

Refunds

Refund amounts are passed in the smallest currency unit:

That creates a 50.00 PLN refund request against the original Tpay transaction. Tpay's refund API does not expose refund cancellation in the same transaction endpoint used here, so cancelRefund() returns a failed PaymentRefund response with an admin-facing message.

Events

Testing

The fake returns:

Its notification signature verifier always returns true, which makes webhook feature tests straightforward.

Development

In local environments without ext-intl, install dependencies with:

Lunar itself requires ext-intl; some cart-calculation paths will still need it at runtime.

License

MIT. See LICENSE.md.


All versions of lunar-tpay with dependencies

PHP Build Version
Package Version
Requires ext-openssl Version *
php Version ^8.3
lunarphp/core Version ^1.0
illuminate/support Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/routing Version ^12.0|^13.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 bpotmalnik/lunar-tpay contains the following files

Loading the files please wait ...