We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32d148a commit b96c13fCopy full SHA for b96c13f
1 file changed
README.md
@@ -27,22 +27,24 @@ Thats all, you have Mercado Pago SDK installed.
27
Simple usage looks like:
28
29
```python
30
- import mercadopago
31
- import json
+import mercadopago
+import json
32
33
- mp = mercadopago.MP("CLIENT_ID", "CLIENT_SECRET")
34
- preference = {
+mp = mercadopago.MP("CLIENT_ID", "CLIENT_SECRET")
+
35
+def index(req, **kwargs):
36
+ preference = {
37
"items": [
- {
- "title": "Test",
38
- "quantity": 1,
39
- "currency_id": "USD",
40
- "unit_price": 10.4
41
- }
42
- ]
43
44
-
45
- mp.create_preference(preference)
+ {
+ "title": "Test",
+ "quantity": 1,
+ "currency_id": "USD",
+ "unit_price": 10.4
+ }
+ ]
46
47
+ mp.create_preference(preference)
48
```
49
50
## 📚 Documentation
0 commit comments