Payment Gateway Setup (GoCoin)

Overview
GoCoin is a boutique Bitcoin payment processor. To use this gateway please see below.
Live/Sandbox
At the time of these docs, GoCoin did not have a sandbox system. Instead they recommend buying a small amount of cryptocurrency from an exchange like Coinbase and sending a small amount of Bitcoin through the integration.

Merchant Account:
https://gocoin.com
API Setup
1 Log into your merchant account.

2 From the left hand menu click "Integrations" and the "Simple" tab to view your merchant ID.

3 Click "Get API Key" to generate a new API key.

4 Log in to your Maian Coin control panel and navigate to "Settings > Payment/Currency".

5 On the "General" tab, select "GoCoin" as the "BitCoin/Blockchain Gateway".

6 On the parameters tab, create parameters with the names of "gocoin-api-key", "gocoin-merchant-id" & "gocoin-rec-currency" respectively and enter your GoCoin Merchant ID, API key and 3 character supported receiving cryptocurrency code. Eg: BTC, LTC, ETH (must be supported by GoCoin)


Setup completed. You are now ready to receive/test payments using GoCoin.
Accepted Statuses
Maian Coin will only update a sale as completed when it receives a response of "ready_to_ship" from GoCoin. In some cases, there could be a delay before this response is received. If you would like the system to update a sale as completed for other statuses, add them to the 'accepted-statuses' array in the following file:

control/classes/gateways/class.gocoin.php

You should be cautious about this. Only the "ready_to_ship" status confirms the sale on the blockchain and the merchant.

For a list of available statuses see the GoCoin website.

If you wish to allow sales that are pending (if supported by gateway), see the "Process Pending Payments as Completed" option in the payment settings.
Allowed IP Addresses
Maian Coin will only accept callbacks from valid gateway IP addresses. At the time of these docs, the allowed IP(s) for this gateway are:

34.197.13.90
34.225.36.248

If the IP(s) are updated/changed, update IP addresses in the following file:

control/classes/gateways/class.gocoin.php