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

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

Payum NovaPay

Provides NovaPay eCommerce acquiring (the payment service of the Nova Poshta group) integration for Payum: hosted checkout with instant debit or two-stage hold payments, and refunds.

Supported operations:

Payment flow

Authorize creates a hold payment: the money is locked instead of charged until the store settles or releases it:

While a session is still payable (created / processing) the capture flow does not create a new one: the returning customer is redirected back to the same NovaPay payment page (url) until the session is paid or expires.

Status mapping

Session status Payum status
created, processing pending
holded, hold_confirmed, processing_hold_completion authorized — the funds are locked, the store settles via DoCapture
paid captured
processing_void pending
voided refunded — covers both a released hold and a refunded payment; the host application distinguishes them by the previous transaction state
failed failed
expired expired

Installation

Usage with PayumBuilder

Usage with Symfony PayumBundle

Register the gateway factory:

Configure a gateway:

Options

Option Required Description
merchant_id yes Merchant identifier issued by NovaPay, sent both in the request body and as the merchant_id header.
merchant_private_key yes PEM-encoded RSA private key of the merchant. Every request body is signed with RSA-SHA256 and the base64 signature is sent as the x-sign header.
sandbox no (default true) true targets the sandbox endpoint (api-qecom.novapay.ua), false — production (api-ecom.novapay.ua).

Payment details

ConvertPaymentAction fills amountin hryvnias (major units), as the NovaPay API expects, converting from the minor-unit total of the payment — and external_id with the payment number.

The only client field NovaPay requires is client_phone (E.164, +380…); client_first_name, client_last_name, client_patronymic and client_email are optional. The gateway passes them through from the payment details supplied by the host application.

The gateway attaches success_url / fail_url to the long-lived after-URL token and callback_url to a notify token. NovaPay bakes these URLs into the session permanently and reuses the session on payment retries, which is exactly why the redirect target must survive repeated visits.

Caveats

License

Released under the MIT License.


All versions of payum-novapay with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-json Version *
ext-mbstring Version *
ext-openssl 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-novapay contains the following files

Loading the files please wait ...