Payment methods on the project (API)
You can find out the payment methods available on a particular project via the API.
https://unitpay.ru/api?method=getMethodsAvailable
params[projectId]=123456
params[secretKey]=project secret key
name
type
decription
projectId
string
Project number
secretKey
string
Project secret key, available in the project settings next to the public key
Example of a successful response
{
"result": {
"card",
"cardInvoice",
"paypal"
}
}
Example of an erroneous answer:
{
"error": {
"message": "Invalid authorization parameters",
"code": -32000
}
}
Important: if you get an error when requesting, we recommend checking the correctness of the secret key and other parameters in the request.
name
decription
-32000
Invalid authorization parameters (login, secret key)
-32602
Invalid query parameters
-32603
Internal technical error
Last updated
Was this helpful?