Skip to content

SteinCode/PrestaShop-Bitcoin-Payment-Gateway-Module

 
 

Repository files navigation

SpectroCoin PrestaShop Crypto Payment Extension

Integrate cryptocurrency payments seamlessly into your PrestaShop store with the SpectroCoin Crypto Payment Module. This extension facilitates the acceptance of a variety of cryptocurrencies, enhancing payment options for your customers. Easily configure and implement secure transactions for a streamlined payment process on your PrestaShop website. Visit SpectroCoin Crypto Payment Module for PrestaShop to get started.

Installation

  1. Download module files from github.
  2. Extract and upload module folder to your PrestaShop /modules folder.
    OR
    Upload spectrocoin.zip in "Module manager" -> "Upload a module".
    Note: the module name has to be spectrocoin for the plugin to work properly.
  3. Go to your PrestaShop administration. "Module Manager" -> locate "SpectroCoin Crypto Payment Gateway" module -> "Configure".

Setting up

  1. Sign up for a SpectroCoin Account.
  2. Log in to your SpectroCoin 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. Click "Submit".
  7. Copy and paste the "Project id".
  8. Click on the user icon in the top right and navigate to Settings. Then click on API and choose Create New API.
  9. Add "API name", in scope groups select "View merchant preorders", "Create merchant preorders", "View merchant orders", "Create merchant orders", "Cancel merchant orders" and click "Create API".
  10. Copy and store "Client id" and "Client secret". Save the settings.

Make it work on localhost

We gently suggest trying out the plugin in a server environment, as it will not be capable of receiving callbacks from SpectroCoin if it will be hosted on localhost. To successfully create and order on localhost for testing purposes, change these 3 lines in SCMechantClient.php createOrder() function:

'callbackUrl' => $request->getCallbackUrl(),
'successUrl' => $request->getSuccessUrl(),
'failureUrl' => $request->getFailureUrl()

To

'callbackUrl' => 'http://localhost.com',
'successUrl' => 'http://localhost.com',
'failureUrl' => 'http://localhost.com'

Adjust it appropriately if your local environment URL differs. Don't forget to change it back when migrating website to public.

Changelog

1.0.0 MAJOR (09/28/2023):

  • Updated module admin settings design for a more modern look inspired by spectrocoin.com.

  • Included an introduction on how to obtain merchant credentials and set up the module.

  • Added the ability to modify the plugin title, description, and toggle logo display in the checkout page.

  • Improved API error handling and provided a styled error form based on actual Spectrocoin payment redirect.

  • Included links to return to the shop or contact support if an API error occurs during the process.

  • Introduced a list of accepted FIAT currencies in JSON format, ensuring future compatibility with updated Spectrocoin APIs.

  • Fixed a bug related to multicurrency sites, ensuring the Spectrocoin checkout option is displayed only if the selected currency is on the accepted list.

  • Implemented handling for deprecated openssl_free_key function for users with older PHP versions.

  • Updated the module to use the new Spectrocoin logo.

Information

This client has been developed 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

Releases

No releases published

Packages

No packages published

Languages

  • PHP 91.4%
  • CSS 5.0%
  • Smarty 3.6%