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
    }
}
name
decription

-32000

Invalid authorization parameters (login, secret key)

-32602

Invalid query parameters

-32603

Internal technical error

Last updated

Was this helpful?