tchenu/checkout-localization-php

There is no license information available for the latest version (dev-master) of this package.

dev-master 2022-05-11 19:44 UTC

This package is not auto-updated.

Last update: 2024-04-26 04:17:45 UTC


README

This library allows to translate the PSP Checkout (http://checkout.com/) errors via response code (https://www.checkout.com/docs/resources/codes/response-codes).

Requirements

Languages supported

  • FR
  • EN

Installation

Composer

Execute the following command to install this library:

composer require icarusmediadigital/checkout-localization-php

Include the autoloader

require_once  'vendor/autoload.php';

How to translate

$translator = new CheckoutLocalization\Translator();
$translator->translate('30033', 'fr'); // "Carte expirée"