File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ Documentation is available at https://developers.getmango.com/en/api/?platform=p
2424Usage
2525=====
2626
27- Import the library and set your secret API key::
27+ Import the library and set your secret API key:
28+
29+ .. code-block :: python
2830
2931 >> > import pymango as mango
3032 >> > mango.api_key = " your Mango secret API key"
@@ -34,7 +36,9 @@ Create a charge
3436---------------
3537
3638In order to create a Charge, you must call the ``create() `` method with
37- the required arguments (see `API documentation <https://developers.getmango.com/en/api/charges/?platform=python#arguments >`_)::
39+ the required arguments (see `API documentation <https://developers.getmango.com/en/api/charges/?platform=python#arguments >`_):
40+
41+ .. code-block :: python
3842
3943 >> > charge = mango.Charges.create(amount = 2000 , email = " [email protected] " , token = " token_mwhushs06o62aruq9n3pmvu7f0ia696y" ) 4044 >> > print charge.get(" uid" )
@@ -46,7 +50,9 @@ the required arguments (see `API documentation <https://developers.getmango.com/
4650 Get single Charge
4751-----------------
4852
49- When you have a Charge ``uid ``, you can get a full detail using the ``get() `` method::
53+ When you have a Charge ``uid ``, you can get a full detail using the ``get() `` method:
54+
55+ .. code-block :: python
5056
5157 >> > mango.Charges.get(" charge_72t1r7vmb9pknrl4otg6xy3wrkwrrpzt" )
5258 {
You can’t perform that action at this time.
0 commit comments