Payment methods
GET/v3/payments/paymentmethods
Retrieve all available payment methods for payments.
Request
Query Parameters
Amount query parameter used for filtering available payment methods
Possible values: [PLN
, EUR
, USD
, GBP
, CZK
]
Currency query parameter used for filtering available payment methods
PLN
Query parameter used for filtering Apple Pay payment method based on availability checked in browser.
true
Header Parameters
The Signature header is used to ensure the request’s body integrity and to confirm that its content has not changed.
The User-Agent request header contains a characteristic string that allows the network protocol peers to identify the application type, operating system, software vendor or software version of the requesting software user agent.
The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Can be set to */*
.
Responses
- 200
- 400
- 401
- 404
- 500
- 503
Success
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Type of method used for payment
Possible values: [APPLE_PAY
, BLIK
, CARD
, ECOMMERCE
, GOOGLE_PAY
, PAYPO
, PBL
]
paymentMethods
object[]
Unique identifier of payment method
Short name of payment method
Description of payment method
Url for payment method icon
Current status of payment method
Possible values: [ENABLED
, DISABLED
]
Authorization type. In case of REDIRECT
the payment authorization happens on Paynow site. In case of CODE
the Payment Request
sent to Paynow needs to contain the authorizationCode
Possible values: [REDIRECT
, CODE
]
[
{
"type": "PBL",
"paymentMethods": [
{
"id": 1000,
"name": "mTransfer",
"description": "Zapłać przez mTransfer",
"image": "https://static.sandbox.paynow.pl/payment-method-icons/1000.png",
"status": "ENABLED",
"authorizationType": "REDIRECT"
}
]
}
]
Bad request
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
Error status code
errors
object[]
required
Error type
Possible values: [CONFLICT
, FORBIDDEN
, NOT_FOUND
, RATE_LIMIT_REACHED
, SYSTEM_TEMPORARILY_UNAVAILABLE
, UNAUTHORIZED
, VALIDATION_ERROR
, VERIFICATION_FAILED
, PAYMENT_METHOD_NOT_AVAILABLE
, PAYMENT_AMOUNT_TOO_SMALL
, PAYMENT_AMOUNT_TOO_LARGE
, IDEMPOTENCY_KEY_MISSING
, SIGNATURE_MISSING
]
Error description
{
"statusCode": 0,
"errors": [
{
"errorType": "CONFLICT",
"message": "string"
}
]
}
{
"statusCode": 400,
"errors": [
{
"errorType": "VALIDATION_ERROR",
"message": "Missing field XXX"
},
{
"errorType": "VALIDATION_ERROR",
"message": "Invalid format of field YYY"
}
]
}
Unauthorized, invalid or missing credentials
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
- UnauthorizedErrorDetails
]
Error status code
errors
object[]
required
oneOf
Error type
Possible values: [UNAUTHORIZED
]
Error description
{
"statusCode": 0,
"errors": [
{}
]
}
{
"statusCode": 401,
"errors": [
{
"errorType": "UNAUTHORIZED",
"message": "Unauthorized, invalid or missing credentials"
}
]
}
Not found
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
Error status code
errors
object[]
required
Error type
Possible values: [NOT_FOUND
]
Error description
{
"statusCode": 0,
"errors": [
{
"errorType": "NOT_FOUND",
"message": "string"
}
]
}
{
"statusCode": 404,
"errors": [
{
"errorType": "NOT_FOUND",
"message": "Resource not found"
}
]
}
Internal server error
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
Error status code
errors
object[]
required
Error type
Possible values: [INTERNAL_SERVER_ERROR
]
Error description
{
"statusCode": 0,
"errors": [
{
"errorType": "INTERNAL_SERVER_ERROR",
"message": "string"
}
]
}
{
"statusCode": 500,
"errors": [
{
"errorType": "INTERNAL_SERVER_ERROR",
"message": "Internal server error"
}
]
}
Service is temporarily unavailable
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
Error status code
errors
object[]
required
Error type
Possible values: [SYSTEM_TEMPORARILY_UNAVAILABLE
]
Error description
{
"statusCode": 0,
"errors": [
{
"errorType": "SYSTEM_TEMPORARILY_UNAVAILABLE",
"message": "string"
}
]
}
{
"statusCode": 503,
"errors": [
{
"errorType": "SYSTEM_TEMPORARILY_UNAVAILABLE",
"message": "Service is temporarily unavailable"
}
]
}