Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
/ reepay-checkout-php Public archive

php library for the reepay checkout API, generated by swagger-codegen

Notifications You must be signed in to change notification settings

reepay/reepay-checkout-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwaggerClient-php

Reepay Checkout REST API

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 1
  • Build package: io.swagger.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//.git"
    }
  ],
  "require": {
    "/": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/SwaggerClient-php/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');

$apiInstance = new Swagger\Client\Api\CheckoutApi(
    // 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()
);
$id = "id_example"; // string | Session id
$body = new \Swagger\Client\Model\SessionChargeDto(); // \Swagger\Client\Model\SessionChargeDto | 

try {
    $result = $apiInstance->chargeCheckoutSession($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckoutApi->chargeCheckoutSession: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://checkout-api.reepay.com

Class Method HTTP request Description
CheckoutApi chargeCheckoutSession POST /v1/checkout/{id}/charge Finish charge using source
CheckoutApi createApplepaySession POST /v1/checkout/{id}/applepay Create Apple Pay session
CheckoutApi createGooglepaySession POST /v1/checkout/{id}/googlepay Create Google Pay session
CheckoutApi createMpoSession POST /v1/checkout/{id}/mpo Create MobilePay Online session
CheckoutApi createPaypalSession POST /v1/checkout/{id}/paypal Create PayPal session
CheckoutApi createPgwSession POST /v1/checkout/{id}/pgw Create pgw session
CheckoutApi createResursSession POST /v1/checkout/{id}/resurs Create Resurs session
CheckoutApi createViabillSession POST /v1/checkout/{id}/viabill Create ViaBill session
CheckoutApi getCheckoutSession GET /v1/checkout/{id} Get checkout session data
CheckoutApi getResursPaymentMethodCost POST /v1/checkout/{id}/resurs/payment_method_cost Get HTML with cost of Resurs payment method
CheckoutApi getResursPaymentMethods GET /v1/checkout/{id}/resurs/payment_methods Get Resurs payment methods
CheckoutApi getTerms GET /v1/checkout/{id}/terms Get account terms template
CheckoutApi recurringCheckoutSession POST /v1/checkout/{id}/recurring Save recurring customer payment method
CheckoutApi subscriptionCheckoutSession POST /v1/checkout/{id}/subscription Set payment method on subscription
ConfigurationApi createConfiguration POST /v1/configuration Create configuration
ConfigurationApi deleteConfiguration DELETE /v1/configuration/{handle} Delete configuration
ConfigurationApi getConfiguration GET /v1/configuration/{handle} Get configuration
ConfigurationApi getConfigurations GET /v1/configuration Get configurations
ConfigurationApi updateConfiguration PUT /v1/configuration/{handle} Update configuration
SessionApi createChargeSession POST /v1/session/charge Create charge session
SessionApi createRecurringSession POST /v1/session/recurring Create recurring session
SessionApi createSubscriptionSession POST /v1/session/subscription Create subscription session
SessionApi deleteSession DELETE /v1/session/{id} Delete session
SessionInfoApi getSession GET /v1/session_info/{id} Get session info
SessionInfoApi getSessions GET /v1/session_info/{relation_type}/{handle} Get sessions by relation type and handle
SignupApi createSignupPage POST /v1/signup_page Create signup page
SignupApi deleteSignupPage DELETE /v1/signup_page/{id} Delete signup page
SignupApi getSignupPage GET /v1/signup_page/{id} Get signup page
SignupApi getSignupPageSignup GET /v1/signup_page/{id}/signup Get signup page signup data
SignupApi getSignupPages GET /v1/signup_page Get signup pages
SignupApi updateSignupPage PUT /v1/signup_page/{id} Update signup page

Documentation For Models

Documentation For Authorization

basicAuth

  • Type: HTTP basic authentication

Author

About

php library for the reepay checkout API, generated by swagger-codegen

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published