Version 1
reprint()¶
This method can be used to reprint and/or share (email) the customer's copy of an authorized payment. As the original receipt has already been printed, the reprint of the receipt will have a black stripe.
Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
request |
ReprintRequest |
Yes | Data transfer object that will contain the payment request information. Note that not all parameters are required. |
callback |
PaymentCallback |
Yes | Interface that will be executed for notifications of success or error of the payment process. |
Detail of the Parameters
request (ReprintRequest)
| Name | Type | Mandatory | Description |
|---|---|---|---|
ApplicationInfo.credentials |
Credentials |
Yes | Credentials of the application that is requesting the operation, as registered at PayStore. Basically, it's about the application ID and the access token. |
ApplicationInfo.softwareVersion |
String |
Yes | Version of the application that is requesting payment. |
ticketNumber |
String |
No | Coupon number. If not informed, the proof of the last authorized payment will be considered. |
Payment.paymentDate |
Date |
No | Payment date/time (including hour, minute, second, and millisecond) for payment application. If not informed, proof of the last authorized payment will be considered. |
Expected Behavior when Filling in ticketNumber and/or Payment.paymentDate:
Searches for payments using the provided ticketNumber.
Result: Returns the first payment found, without guaranteeing it is the correct one.
Searches for payments using the provided paymentDate.
Result: Returns the payment corresponding to the provided date/time.
Both Valid:
- Searches for payments using the
ticketNumberand validates thepaymentDate. - Result: Returns the payment that matches both the
ticketNumberand thepaymentDate.
Only ticketNumber Valid:
- Searches for
ticketNumberand validates thepaymentDate. - Result: Returns the first payment found, without guaranteeing it is the correct one if the
paymentDateis invalid.
Only Payment.paymentDate Valid:
- Searches for
ticketNumber. If invalid, no payment will be found, even if thepaymentDateis valid. - Result: No payment will be found.
callback (PaymentCallback)
| Name | Type | Mandatory | Description |
|---|---|---|---|
onSuccess |
Method for notification on success. | ||
onError |
Method for notification in case of error. | ||
ErrorData.paymentsResponseCode |
String |
Yes | Response code for the error that occurred. See Response Codes |
ErrorData.acquirerResponseCode |
String |
No | Response code for the occurred error returned by the acquirer. Note that this error will only be returned if the transaction is not authorized by the acquirer. |
ErrorData.responseMessage |
String |
No | Descriptive message of the reason for the non-authorization. If the transaction was denied by the acquirer, it will contain the message returned by the acquirer. |