Git Product home page Git Product logo

paysafecard-rest-php-psr4's Introduction

paysafecard PSR-4 PHP SDK for REST

A official PSR-4 SDK implementation for accessing the paysafecard REST API, with the ability to handle payments, payouts and refunds.

This SDK a drop-in replacement for the legacy, non-PSR-4 PHP SDK. It only requires changes to class names and namespace, the methods of the classes are further backwards compatible.

API documentation is available at: https://www.paysafecard.com/fileadmin/api/

Installation

This library makes use of composer. Load it into your project as follows:

composer require paysafecard/paysafecard-rest-php-psr4

Integration

To use the paysafecard PHP SDK, you need to be a paysafecard partner. Request this through the paysafecard website.

Once registered, configure the examples or integrate this library in your project. When integrated, finish the integration test in the paysafecard service center and wait for acceptance of your environment.

Payments

Payments are handled through the class paysafecard\paysafecardSDK\Payments. See the doctype for further documentation. There is a working implementation of all methods in the examples/payments folder, with a sample integration.

Payouts

Payouts are handled through the class paysafecard\paysafecardSDK\Payouts. See the doctype for further documentation. There is a working implementation of all methods in the examples/payouts folder, with a sample integration.

Refunds

Refunds are handled through the class paysafecard\paysafecardSDK\Refunds. See the doctype for further documentation. There is a working implementation of all methods in the examples/refunds folder, with a sample integration.

Examples

If you want to use the examples provided in the library, clone this project into a PHP-powered webserver and install the dependencies:

composer install

After that, change the config file in examples/config.php and load up the examples/payments/-path in a browser.

paysafecard-rest-php-psr4's People

Contributors

wouter0100 avatar

Forkers

xhr-consulting

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.