Skip to content

soxyl/saferpay-php

Repository files navigation

Saferpay JSON API PHP Client

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 1.10.0
  • Package version: 1.10.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/soxyl/saferpay.git"
    }
  ],
  "require": {
    "soxyl/saferpay": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/Saferpay JSON API PHP Client/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuth
$config = Soxyl\Saferpay\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Soxyl\Saferpay\Api\AliasApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$alias_assert_insert_request = new \Soxyl\Saferpay\Model\AliasAssertInsertRequest(); // \Soxyl\Saferpay\Model\AliasAssertInsertRequest | 

try {
    $result = $apiInstance->aliasAssertInsertPost($alias_assert_insert_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AliasApi->aliasAssertInsertPost: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://www.saferpay.com/api/Payment/v1

Class Method HTTP request Description
AliasApi aliasAssertInsertPost POST /Alias/AssertInsert
AliasApi aliasDeletePost POST /Alias/Delete
AliasApi aliasInsertDirectPost POST /Alias/InsertDirect
AliasApi aliasInsertPost POST /Alias/Insert
BatchApi batchClosePost POST /Batch/Close
OmniChannelApi omniChannelAcquireTransactionPost POST /OmniChannel/AcquireTransaction
OmniChannelApi omniChannelInsertAliasPost POST /OmniChannel/InsertAlias
PaymentPageApi paymentPageAssertPost POST /PaymentPage/Assert
PaymentPageApi paymentPageInitializePost POST /PaymentPage/Initialize
TransactionApi transactionAdjustAmountPost POST /Transaction/AdjustAmount
TransactionApi transactionAssertCapturePost POST /Transaction/AssertCapture
TransactionApi transactionAssertRedirectPaymentPost POST /Transaction/AssertRedirectPayment
TransactionApi transactionAssertRefundPost POST /Transaction/AssertRefund
TransactionApi transactionAuthorizeDirectPost POST /Transaction/AuthorizeDirect
TransactionApi transactionAuthorizePost POST /Transaction/Authorize
TransactionApi transactionAuthorizeReferencedPost POST /Transaction/AuthorizeReferenced
TransactionApi transactionCancelPost POST /Transaction/Cancel
TransactionApi transactionCapturePost POST /Transaction/Capture
TransactionApi transactionInitializePost POST /Transaction/Initialize
TransactionApi transactionMultipartCapturePost POST /Transaction/MultipartCapture
TransactionApi transactionMultipartFinalizePost POST /Transaction/MultipartFinalize
TransactionApi transactionQueryPaymentMeansPost POST /Transaction/QueryPaymentMeans
TransactionApi transactionRedirectPaymentPost POST /Transaction/RedirectPayment
TransactionApi transactionRefundDirectPost POST /Transaction/RefundDirect
TransactionApi transactionRefundPost POST /Transaction/Refund

Documentation For Models

Documentation For Authorization

BasicAuth

  • Type: HTTP basic authentication

Author

About

This repository provides PHP client for the Saferepay JSON API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages