Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
Authenticate is used for obtaining a JWT token. Such a token is required for some API calls like payment status or create payment.
func HTTPSend ¶
func HTTPSend(p *SendParams) error
HTTPSend sends to endpoint with an optional request body and get the HTTP response result in into.
func Status ¶
Status returns current state of the API. "OK" is returned if everything is fine, otherwise an error message is returned.
func UseBaseURL ¶
func UseBaseURL(b BaseURL)
UseBaseURL sets the base URL to use to connect to NOWPayment's API.
Types ¶
type BaseURL ¶
type BaseURL string
BaseURL is the URL to NOWPayment's service.
const ( // ProductionBaseURL is the URL to the production service. ProductionBaseURL BaseURL = "https://api.nowpayments.io/v1" // SandBoxBaseURL is the URL to the sandbox service. SandBoxBaseURL = "https://api-sandbox.nowpayments.io/v1" )
Click to show internal directories.
Click to hide internal directories.