Retrieve payment
Changed onUse this method to retrieve information about a card payment.
To retrieve a payment, you need its paymentId. Our gateway returned the paymentId in the response of the Create Payment method.
Note: If you don't have the paymentId, use our List Payments method to search for the payment.
Our gateway returns the following information about the payment:
- Order details, including the transaction amount and when it was processed.
- Payment card details, including the masked card number, expiry date, and payment method.
- Cardholder details, including their contact information and shipping address.
- Payment details, including the payment type, status, and response.
If the merchant saved the customer's card details, our gateway returns a secureTokenID, which you can use to perform follow-on actions.
Request
- Base URLhttps://api.payroc.com/v1
- URLhttps://api.payroc.com/v1/payments/{paymentId}
- AuthHTTP bearer
Path parameters
Unique identifier of the payment that the merchant wants to retrieve.
Response
Successful request. Returns the payment.
Changes
- breaking
the
//response property's maxLength was increased from100to255for the response status - info
added the optional property
//to the response with the status
- breaking
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
Bearerwas added to the API
- warning