Skip to content

Commit f28616d

Browse files
committed
[FIX] README
1 parent 39342bb commit f28616d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ A simple, clean and less dependant client to handle payments through RedSys plat
99
The purpose of this library is just provide a normalized interface between RedSys and other applications.
1010

1111
**About `RedirectClient`**
12+
1213
Although *redirect connection* depends on a webserver to resolve the communication step,
1314
the `RedirectClient` provided in this library does not assumes any kind of procedure to resolve that
1415
step; it merely prepares the necessary parameters to make a request and handle the corresponding response parameters.
@@ -73,7 +74,7 @@ After the payment process is finish, RedSys will respond making a request to the
7374

7475
6. Create and check the response
7576
--------------------------------
76-
Create the response object using the received parameters from RedSys. This `create_response()` method
77+
Create the response object using the received parameters from RedSys. The method `create_response()`
7778
throws a ``ValueError`` in case of the received `signature` does not be equal to the calculated one using
7879
the given merchant_parameters. This normally means that the response **is not comming from RedSys** or that
7980
**has been compromised**.
@@ -91,6 +92,7 @@ the given merchant_parameters. This normally means that the response **is not co
9192
raise Exception(response.response, response.message)
9293
9394
**Methods for checking the response:**
95+
9496
According to the RedSys documentation:
9597
- `response.is_paid()`: Returns ``True`` if the response code is between 0 and 99 (both included).
9698
- `response.is_canceled()`: Returns ``True`` if the response code is 400.

0 commit comments

Comments
 (0)