Payment PayWithPartnerCard v2

From Barion Documentation
Jump to navigation Jump to search

Barion API: Pay with partner card

POST /v2/Payment/PayWithPartnerCard

Use cases

This endpoint conduct a payment via partner card.

v2 This API endpoint is available in API v2 only.

Input properties

Property name Property type Limitations and constraints Description
PartnerKey Guid
  • Required
The secret API key of the partner, generated by Barion.
PaymentId Guid
  • Required
The Id received in the response from the call to /Payment/Start.
PrivateCardKey string - The private key of the card.
CardPin string
  • Required
  • Min 4 Max 8 length alphanumeric string
The PIN code associated with the card

Output properties

Property name Property type Description
IsSuccessful bool True, if the process was successful.
PaymentId string The Id of the payment
PaymentRequestId string The Id of the payment that the integrator generated. This is used for pairing the Barion Id with the integrating systems id.
PaymentStatus PaymentStatus The status of the payment.

Possible error responses

Error code Description
InvalidCardKey The card key provided either doesn't belong to a card or the card is already issued.