There are 2 ways to accept payments with the CoinPayments API:
- 'create_transaction' - Fixed-price Payments (most popular): You specify a price in fiat or cryptocurrency and what type of coin to receive. The buyer has to send the amount of coin returned by the API in order for the transaction to go through; if you want to receive for example $100 USD worth of Bitcoin for a client's order this is the choice for you. Fixed-price payments also have a multitude of payout options from storing in your CoinPayments Wallet, forwarding to another crypto wallet, converting to another coin, or settling in fiat currency.
- 'get_callback_address' - Variable Payments: Gives you an address, any coins received by it are deposited into your CoinPayments Wallet and if you have an IPN URL set will notify your server of the payment. The buyer can send any amount of coins as many times as they want; if you want to assign a client an address they can use to "top up" any time this is the choice for you.
Also note for fixed-price payments the easiest way to accept payments would be to use a Simple or Advanced button which you can find in our Merchant Tools