-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from placetopay-org/feature/reverse-doc
Feature/reverse doc
- Loading branch information
Showing
16 changed files
with
111 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
export const description = | ||
'Conoce el proceso de reembolsos de transacciones en Placetopay' | ||
|
||
# Reembolsos {{ id: 'refunds' }} | ||
|
||
Desde nuestro API puedes realizar el reembolso y cancelación de transacciones aprobadas. | ||
|
||
Para realizar un reembolso debes conocer la referencia interna de la transacción a reembolsar `payment.internalReference`. Este dato se puede obtener al [consultar una sessión](/checkout/api/reference/session#query-a-session). | ||
|
||
## ¿Cómo realizar un reembolso? {{ id: 'how-to-make-a-refund' }} | ||
|
||
Para realizar un reembolso se debe hacer una petición al endpoint [Reembolsar Transacción](/checkout/api/reference/payment#reverse-payment). Existen dos tipos de reembolsos *total* o *parcial*: | ||
|
||
### Reembolso total | ||
|
||
Se utiliza para reembolsar la totalidad del monto aprobado en la transacción. | ||
|
||
Si la transacción no ha sido conciliada en la red bancaria, el reembolso será tratado como una "cancelación" de la transacción. | ||
|
||
### Reembolso parcial | ||
|
||
Se utiliza para reembolsar una parte del monto aprobado en la transacción. | ||
|
||
Se debe enviar la propiedad `amount` en la petición, este dato debe corresponder al monto que se quiere reembolsar. | ||
|
||
Los reembolsos parciales se pueden realizar tantas veces como sea necesario hasta que se complete el monto total aprobado en la transacción. Una vez que una transacción se ha reembolsado por completo, no es posible realizar otro reembolso. | ||
|
||
Si se realiza una petición de reembolso sobre una transacción completamente reembolsada, este método devolverá un error `status.message` `La transacción ya ha sido reembolsada` | ||
|
||
Si la transacción no ha sido conciliada en la red bancaria, no se pueden realizar reembolsos parciales, se debe reliazar un reembolso total. | ||
|
||
<Note> | ||
La disponibilidad de reembolsos y reembolsos parciales puede variar según el medio de pago, país y/o proveedor usado. | ||
La fecha de conciliación de transacciones puede variar según el medio de pago, país y/o proveedor usado. | ||
</Note> | ||
|
||
## Verificar una transacción reembolsada {{ id: 'verify-a-refund' }} | ||
|
||
Para verificar que una transacción fue reembolsada total o parcialmente, se debe [consultar la sesión](/checkout/api-reference/session#query-a-session) de la transacción original donde encontraras en la respuesta la propiedad `payment.refunded` con valor `true`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
export const description = | ||
'Learn about the refund process for Placetopay transactions' | ||
|
||
# Refund {{ id: 'refunds' }} | ||
|
||
From our API, you can process refunds and cancellations of approved transactions. | ||
|
||
To process a refund, you need to know the internal reference of the transaction to be refunded, `payment.internalReference`. This information can be obtained by [Query a session](/en/checkout/api/reference/session#query-a-session). | ||
|
||
## How to make a refund? {{ id: 'how-to-make-a-refund' }} | ||
|
||
To process a refund, you need to make a request to the [Refund Transaction](/en/checkout/api/reference/payment#reverse-payment) endpoint. There are two types of refunds: *full* or *partial*: | ||
|
||
### Full Refund | ||
|
||
It is used to refund the entire approved amount of the transaction. | ||
|
||
If the transaction has not been settled in the bank network, the refund will be treated as a "cancellation" of the transaction. | ||
|
||
### Partial Refund | ||
|
||
It is used to refund a portion of the approved transaction amount. | ||
|
||
You must include the `amount` property in the request, corresponding to the amount you wish to refund. | ||
|
||
Partial refunds can be made as many times as necessary until the total approved amount of the transaction has been refunded. Once a transaction has been fully refunded, no further refunds can be processed. | ||
|
||
If a refund request is made for a transaction that has already been fully refunded, this method will return an error `status.message` `Transaction already refunded`. | ||
|
||
If the transaction has not been settled in the bank network, partial refunds cannot be made; a full refund must be processed instead. | ||
|
||
<Note> | ||
The availability of refunds and partial refunds may vary depending on the payment method, country, and/or provider used. | ||
The settlement date of transactions may vary depending on the payment method, country, and/or provider used. | ||
</Note> | ||
|
||
## Verify a refunded transaction {{ id: 'verify-a-refund' }} | ||
|
||
To verify whether a transaction has been fully or partially refunded, you need to [query the session](/en/checkout/api/reference/session#query-a-session) of the original transaction, where you will find the `payment.refunded` property with a value of `true` in the response. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters