Coinpayments Apis: Process Overview
Coinpayments Apis: Process Overview
The best place to start is our Step-By-Step Integration Guide, which helps you through setting up your
CoinPayments account, integration, setting up additional features and testing your integration.
PROCESS OVERVIEW
The IPN system will notify your server when you receive a payment and when the payment status
changes. IPNs provide an easy and useful way to integrate our payment gateway into your software to
automate order completion, digital downloads, accounting, or any process you want to initiate after
receiving payment.
PAYMENT STATUS
IPNs will be returned with a 'status' field, here are the currently defined values:
PAYMENTS
For custom integrations we have a variety of API calls available to suit many different situations.
Typically used for making your own custom checkout page keeping customers on your site, instead of
using the CoinPayments hosted checkout page.
There are various methods of accepting payments via the CoinPayments API and each method typically
returns a different IPN type with different information contained within the IPN.
4) ‘get_deposit_address’ – Addresses returned by this API are for personal use deposits and reuse
the same personal address(es) in your wallet. Deposits to these addresses don't send IPNs. For
commercial-use addresses and/or ones that send IPNs see 'get_callback_address'.
5) Prebuilt Plugins - Integrate CoinPayments into your online store by using one or our prebuilt
plugins or integrations for the major ecommerce platforms, such as Shopify, WooCommerce,
Magento and many more.
Full Plugin List
https://www.coinpayments.net/merchant-tools-plugins
IPN returned is type = ”API”
6) Invoice Links – Complete the details on the form to get a link that you can send to customers for
payment. When the customer clicks the link, the exchange rate is pegged at that time and the
customer has a set amount of time to complete the payment.
Invoice Links
https://www.coinpayments.net/merchant-tools-request
IPN returned is type = ”button”
7) Donation Buttons – Complete the details on the form to get some code you can use as a
donation button to receive payments when users click the button. When the user clicks the link,
the exchange rate is pegged at that time and the user has a set amount of time to complete the
payment.
Donation Buttons
https://www.coinpayments.net/merchant-tools-donation-maker
IPN returned is type = ”donation”
INTEGRATION TESTING
Testing is done in a live environment using a free cryptocurrency called Litecoin Testnet (LTCT). You can
enable receiving payments in LTCT in the Coin Settings within your CoinPayments account and you can
request some free LTCT to test your integration on the Wallets page of your CoinPayments account.
SAMPLE CODE
Example building Ripple transactions in response to IPNs with Quick Gateway Kit:
https://github.com/whotooktwarden/rippled-sign-submit