Download the PHP package acceptcrypto/acceptcryptophp without Composer

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

AcceptCrypto PHP library

Documentation: https://docs.acceptcryp.to

The PHP library is meant for creating custom checkout forms and verifying a payment in the back-end. It's a good practise to keep verifying the payment till its fully confirmed.

Getting started

You can either install our library using composer composer require acceptcrypto/acceptcryptophp or download the source code directly from GitHub

Integrating

Start checkout process

Add an email address to a payment automatically, to make sure customers use the same email as they did on your website for example. Email address is optional but recommended.

The response will be as followed;

  1. error
    • Boolean, returns if the request has encountered any errors.
  2. message
    • String, only returns after an error has occurred
  3. token
    • String, payment token to be used in our Javascript library or API.
  4. url
    • String, can be redirected to to let the user pay

Create a custom checkout form

This code can be used to create a custom checkout form in the back-end rather than on our dashboard. The background and customer email address are both optional parameters but recommended. The background color will be the AcceptCrypto color #FABD58 by default.

The response will be as followed;

  1. error
    • Boolean, returns if the request has encountered any errors.
  2. message
    • String, only returns after an error has occurred
  3. token
    • String, payment token to be used in our Javascript library or API.
  4. url
    • String, can be redirected to to let the user pay

Checking payment id

Check if the payment has been successful from the above returned payment id.

The response will be as followed;

  1. error
    • Boolean, returns if the request has encountered any errors.
  2. message
    • String, only returns after an error has occurred.
  3. paid
    • Boolean, returns if the payment has been paid.
  4. confirmed
    • Boolean, returns if the payment has been fully confirmed.
  5. date
    • Timestamp, returns when the payment was made.

Checking email

Check if the given email address has paid successfully.

The response will be as followed;

  1. error
    • Boolean, returns if the request has encountered any errors.
  2. message
    • String, only returns after an error has occurred.
  3. paid
    • Boolean, returns if the payment has been paid.
  4. confirmed
    • Boolean, returns if the payment has been fully confirmed.
  5. lastPaid
    • Timestamp, returns the date when the email has paid last.

All versions of acceptcryptophp with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
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 acceptcrypto/acceptcryptophp contains the following files

Loading the files please wait ....