Sample PHP API client for communicating with SpectroCoin Merchant API service. This text has been generated based on the official documentation provided by Spectrocoin.
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.
Folder contains test API certificates.
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.
- Sign up for a Spectroin Account.
- Log in to your Spectroin account.
- On the dashboard, locate the "Business" tab and click on it.
- Click on "New project".
- Fill in the project details and select desired settings (settings can be changed).
- 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.
- Click "Submit" to save the project and then click "Close".
- Select the option "All projects" and choose your project.
- In constants.php fill merchant id and project id.
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