Commit 8bb6f1f2 by Juan

Premersh

1 parent 5bc5a47a
......@@ -365,6 +365,10 @@ class trans_transportista(models.Model):
return({"url": url, "type": "ir.actions.act_url" })
def ComprarMembresia(self):
"""Metodo usado por la web"""
#las siguientes lineas comentarlas a passar a productivo
homo = "https://www.mercadopago.com.ar/checkout/v1/payment/redirect/9d06a716-cb31-476c-aa48-5283021acc08/express/?router-request-id=2aeedf4d-c834-41ce-b92d-36db4160de86&preference-id=188260558-fcc99e2f-9a53-40e2-8aa5-ae4ef4494d7f&p=5a6552d81ef1ca6d82eb53e08e217b30"
return({"url":homo,"error":False,"mensaje":""})
try:
rta = self.comprar()
url = {"url":rta["url"],"error":False,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!