Download the PHP package payme-quantum/payment-sdk without Composer

On this page you can find all versions of the php package payme-quantum/payment-sdk. 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 payment-sdk

PAYME Payment Integration

This project provides a PHP-based integration with the PayMe API for processing payments through multiple providers. It supports both sandbox and production environments, handles real-time payment status callbacks, and includes a fallback polling mechanism.

Features

Prerequisites

PHP (>= 7.4) Composer PAYME API access (for both sandbox and production environments)

Getting Started

1. Install the package in your project

2. Environment Configuration

Create a .env file in your project root and add the following variables: text

General Configuration

Sandbox Configuration

SUBSCRIPTION_KEY_SANDBOX= CALLBACK_HOST_SANDBOX= PAYME_CREDENTIAL_EMAIL= PAYME_CREDENTIAL_PASSWORD=

Production Configuration

SUBSCRIPTION_KEY_PRODUCTION= CALLBACK_HOST_PRODUCTION= PAYME_CREDENTIAL_EMAIL= PAYME_CREDENTIAL_PASSWORD=

3. Running the Application

To test the integration in sandbox mode, ensure that the PAYME_ENV is set to sandbox part in your .env file.

php index.php

4. Payment Processing

Use the provided postPayment and postPaymentItem functions to initiate a payment. Here's an example of how to call them:

For Developers

Different types declaration of the system

Methods

php

getFees(amount: int, country: string): array;

Given an amount, this function allows you to get the fees associated with an operation.

php

postPayment(param: PaymentParam): array;

Initiates the transaction request. php

getPaymentStatus(reference: string): array;

Retrieves the status of the transaction request. php

postPaymentItem(param: PaymentItemParam): array;

Initiates the payment request. Don't forget that a payment is related to a specific transaction. php

getPaymentItemStatus(reference: string): array;

Retrieves the status of the payment request. php

getPaymentWithItems(reference: string): array;

Polls for the transaction status and all its related payments.

Error Handling

Roadmap

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.


All versions of payment-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
guzzlehttp/guzzle Version ^7.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 payme-quantum/payment-sdk contains the following files

Loading the files please wait ....