Download the PHP package vedatunlu/payment without Composer

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

Laravel Payment

Laravel Payment is a package used for managing payment gateway integrations. This package provides an easy interface for integrating popular payment gateways such as Sipay (and soon Iyzico, Sipay, PayTr, iPara, Paynet etc.) into your Laravel application.

Features

Installation

  1. Use Composer to add the Laravel Payment package to your project:

  2. Package service providers will be discovered by your laravel project automatically. So you don't need to update your app/config.php file to add package service provider.

  3. Publish the config files to your project.

The command above will create a file named payment.php on config directory.

Create environment variables on your .env file before usage

Add your credentials provided by your payment gateway to the related payment gateway scope of the payment config file which is published to the config directory of your laravel file. You can provide the credentials from your service provider if you don't have yet. You don't need to define any other credentials if you don't plan to use another one. If yes. You can use each of payment gateway supported by the package by defining credentials on the related scope of the payment config file.

Payment class usage reference table

Please check out the table given below to get basic knowledge of the Payment class behavior before using it.

Method Name Description Available gateways
getCards Returns saved cards with given customer Sipay
saveCard Stores card information on the payment gateway host Sipay
updateCard Updates card information on the payment gateway host Sipay
deleteCard Deletes card information on the payment gateway host Sipay
payWith2D Start a 2D payment with given credit card for given customer info Sipay
payWith3D Start a 3D payment with given credit card for given customer info Sipay
payWithSavedCard Start a payment with stored credit card on the payment gateway host Sipay
verifyPayment Make a verification request for given payment Sipay
refund Start a refund process for given invoice Sipay
installmentInquiry Make an installment inquiry request for given credit card Sipay
transactionStatus Check all processed transaction's status Sipay

Hint: All methods accepts an array as parameter. You are not required to attach any credentials such as merchant_id, app_key, secret_key thanks to the package service provider can attach the credentials automatically. Please check your payment gateway documentation to get further information about the required parameters of the endpoints.

Basic Usage Examples

  1. getCards:

  2. saveCard:

  3. payWith3D:

  4. Validate Incoming Sipay Hash key:

You can easily validate hash keys returned from sipay gateway using Payment::validate($hashKey).

This method returns array including status, total amount, invoice id, order id, currency code if key is valid. If not method will be returned false.

Contributing to the package

We welcome and appreciate your contributions to the package! The contribution guide can be found here.

License

This package is open-sourced software licensed under the MIT license.


All versions of payment with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
guzzlehttp/guzzle Version ^7.7
ext-openssl Version *
ext-json Version *
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 vedatunlu/payment contains the following files

Loading the files please wait ....