Skip to content

SpectroCoin/Bitcoin-Merchant-PHP

Repository files navigation

SpectroCoin-Merchant-PHP

Sample PHP API client for communicating with SpectroCoin Merchant API service. This text has been generated based on the official documentation provided by Spectrocoin.

Contents

/SCMerchantClient

SCMerchantClient.php is SpectroCoin Merchant API sample PHP client. You should use it as it is or update it for your needs. This folder contains generic API client part.

/cert

Folder contains test API certificates.

/js and root

The other folders or files are used only for API client testing purpose.

Use direct.php for initiating a direct payment transaction and processing payment details.

Use redirect.php for handling payment redirection and completing the payment process.

Setting up

  1. Sign up for a Spectroin Account.
  2. Log in to your Spectroin account.
  3. On the dashboard, locate the "Business" tab and click on it.
  4. Click on "New project".
  5. Fill in the project details and select desired settings (settings can be changed).
  6. The Private and Public keys are obtained from your merchant project's settings page. Private key is only displayed once when the project is created, but can be newly generated by pressing on "Generate" button below your Public key field. Copy the newly generated private and public keys and store them in the mprivate.pem and mpublic.pem files within the /cert directory.
  7. Click "Submit" to save the project and then click "Close".
  8. Select the option "All projects" and choose your project.
  9. In constants.php fill merchant id and project id.

Information

This client has been dev`eloped by SpectroCoin.com If you need any further support regarding our services you can contact us via:

E-mail: merchant@spectrocoin.com
Skype: spectrocoin_merchant
Web
Twitter
Facebook

About

SpectroCoin Bitcoin Merchant API PHP client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •