2017 © Pedro Peláez
 

project acceptcryptophp

AcceptCryptoPHP is a library by AcceptCrypto to interact with AcceptCrypto Checkout.

image

acceptcrypto/acceptcryptophp

AcceptCryptoPHP is a library by AcceptCrypto to interact with AcceptCrypto Checkout.

  • Wednesday, May 16, 2018
  • by svenvdz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

AcceptCrypto PHP library

Documentation: https://docs.acceptcryp.to, (*1)

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., (*2)

Getting started

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

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., (*4)

$response = AcceptCrypto::checkout({{TOKEN}}, {{CUSTOMER EMAIL ADDRESS}});

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, (*5)

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., (*6)

$response = AcceptCrypto::custom({{NAME}}, {{AMOUNT}}, {{CURRENCY}}, {{BACKGROUND}}, {{CUSTOMER EMAIL ADDRESS}}, {{API KEY}});

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, (*7)

Checking payment id

Check if the payment has been successful from the above returned payment id., (*8)

$tx = AcceptCrypto::tx({{ID}}, {{API KEY}});

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., (*9)

Checking email

Check if the given email address has paid successfully., (*10)

$email = AcceptCrypto::email({{EMAIL}}, {{API KEY}});

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., (*11)

The Versions

16/05 2018

dev-master

9999999-dev

AcceptCryptoPHP is a library by AcceptCrypto to interact with AcceptCrypto Checkout.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Munt

bitcoin ethereum cryptocurrency ripple dash litecoin monero merchants bitcoincash acceptcrypto php

23/02 2018

1.0

1.0.0.0

MuntPHP is a library by Munt to interact with Munt Checkout.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Munt

bitcoin ethereum cryptocurrency ripple dash litecoin monero merchants muntphp bitcoincash