Download the PHP package hds-solutions/bancard-sdk without Composer

On this page you can find all versions of the php package hds-solutions/bancard-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 bancard-sdk

Bancard SDK

Library to implement Bancard vPOS and Bancard VentasQR products.

Latest stable version License Total Downloads Monthly Downloads Required PHP version

Installation

Dependencies

Through composer

Usage

To set your Bancard credentials, use the Bancard::credentials() method.

The library by defaults uses the staging environment. To change to production environment use the Bancard::useProduction() method.

This method also can receive a boolean parameter. For example, in Laravel you can dynamically match your environment

Request and Response objects features

The request and the response objects have some helper methods:

vPOS

SingleBuy

Endpoint used to generate a process ID to call the Bancard <iframe> for an one-time payment.

SingleBuy Zimple

Same as above, but for Zimple payments.

Customizable requests

If you need, you can create a pending request and change the values on runtime. This applies to all available requests.

CardsNew

Endpoint used to generate a process ID to call the Bancard <iframe> for card registry.

UsersCards

Endpoint used to get the registered user cards.

CardDelete

Endpoint to remove a registered card. You need an instance of Card model obtained from previous request.

Charge

Endpoint used to make a payment using a registered user card. You need an instance of Card model obtained from Bancard::users_cards().

Confirmation

Endpoint to get the confirmation of a payment. Example, in case the above charge request stayed as a pending of confirmation payment.

Rollback

Endpoint to rollback a payment.

VentasQR

Commerce code & Branch code

In order to use VentasQR, you need to set your credentials through the Bancard::qr_credentials() method.

⚠ Important: VentasQR is not scoped by Bancard::useProduction(), since your assigned domain will define your testing/production environment.

QR Generate

Endpoint to request a QR Payment.

QR Revert

Endpoint to revert a QR Payment.

Security Vulnerabilities

If you encounter any security-related issues, please feel free to raise a ticket on the issue tracker.

Contributing

Contributions are welcome! If you find any issues or would like to add new features or improvements, please feel free to submit a pull request.

Contributors

Licence

This library is open-source software licensed under the GPL-3.0 License. Please see the License File for more information.


All versions of bancard-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
guzzlehttp/guzzle Version ^7.5
guzzlehttp/psr7 Version ^2.4
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 hds-solutions/bancard-sdk contains the following files

Loading the files please wait ....