Skip to content

Instantly share code, notes, and snippets.

@azhtom
Created November 25, 2016 23:02
Show Gist options
  • Save azhtom/b4bdc6fbb9e731c841e93cfb5af18925 to your computer and use it in GitHub Desktop.
Save azhtom/b4bdc6fbb9e731c841e93cfb5af18925 to your computer and use it in GitHub Desktop.
mp
preference = {
'items': [
{
'title': 'TIcket Test',
'quantity': 1,
'currency_id': 'PEN',
'unit_price': 100.0
}
],
'payer': [
{
'name': u'Daniel',
'surname': u'Soria',
'email': u'Email',
}
]
}
mp = mercadopago.MP('','')
mp.sandbox_mode(True)
preferenceResult = mp.create_preference(preference)
url = preferenceResult["response"]["sandbox_init_point"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment