Download the PHP package kazin8/elopage-php without Composer

On this page you can find all versions of the php package kazin8/elopage-php. 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 elopage-php

Elopage

Elopage API php wrapper

http://apidoc.elopage.com

NOTE:

Attention!

Api service is not standardized, returns errors in different formats, does not rely on the returned server codes and so on. Some attempts have been made in this library to standardize responses, but this does not always work correctly. Especially in terms of translation.

I apologize for the unstable work.

Install

What can you do?

Authenticate

Authenticate your account by using your secret API key in the request. You can create or renew your API keys in your dashboard settings. Keep your API and secret keys secret. Please do not share your API keys publicly on Github and so forth.

On production you must create requests over HTTPS, otherwise calls will fail. Sandbox requests can be with HTTP.

Sandbox and payments credentials

You can use api in stage mode (for testing).

Credentials for test payments will not work on the production environment. For now, we don’t have the option to test payments on production except for real payments.

Credit Card

The following credit card numbers can be used to test Visa or Mastercard payments.

Parameter Value
CVV Any 3 digits
Date any date in the future, before 2030
Number 5017670000005900
5017670000006700
5017670000007500
5017670000008300
Sofort Überweisung (Klarna)

The following online banking and account credentials can be used to test Sofort Überweisung (Klarna) payments.

Parameter Value
Country of your bank Germany
Sort code or BIC 88888888
Account number 234567
PIN 12345
TAN 12345
SEPA

Please use the following payment information to test both instant successful and failed payments. Be aware that the initial payment takes 5 days to process. During that time the payment will have the “pending” status. SEPA payments are available for reseller-type-accounts.

Description IBAN
To do an instant successful transaction DE89370400440532013000
To do an instant failed transaction DE62370400440532013001
Paypal

Please use the following Paypal credentials to test payments on staging. Beware that you do not have an option to check the payment status on a Paypal account (by logging in to Paypal) unless you connect your own Paypal account on production.

Parameter Value
Username [email protected]
Password 123elopage

Create API instance

Set errors language

The library supports two language versions - English (en) and German (de).

English version is selected by default.

You can set another language:

Response objects

All methods return a universal response object. (instance of ResponseDto class).

If an error occurs, the ErrorDto class object is returned.

This object has several methods that will help you in working with api.

Verify the success of the request

Get response data

Errors and exceptions

The error class has the following methods:

Method Description
getMessage Returns the contents of the error in the selected language
getCode Returns the internal library error code
getCurlCode Returns the http error code (if it exists)

API errors list

Code Description
ERROR_UNKNOWN Unknown error
ERROR_CURL Http call error reported by curl (#%s - %s)
ERROR_UNAUTHORIZED Auth error
ERROR_NOT_FOUND API action not found
ERROR_BAD_SERVER_RESPONSE Returned if the action was performed incorrectly and the server returned an error.

The library has its own exception, which you can throw in case of an error.

Api methods

For more information about input parameters and response structure, read the documentation: Elopage api documentation

Product

Get product
Get products list
Create product
Update product

Publishers

Get publishers list
Enroll publisher to program
Unenroll publisher from program

Pricing plans

Get pricing plan
Create pricing plan
Delete pricing plan

Payments

Get payment info

Refunds

Get refund info
Create a refund

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue before making a pull request.

Authors

Vladimir Vasyukov - kazin8

License

This project is licensed under the MIT License - see the LICENSE file for details


All versions of elopage-php with dependencies

PHP Build Version
Package Version
Requires php Version ^5.3 || ^7.0 || ^8.0
ext-curl Version *
ext-json Version *
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 kazin8/elopage-php contains the following files

Loading the files please wait ....