Foro
checkout
over 1 year ago by Jorge Gonzalez
Hola, dos preguntas
- se puede poner mas de un correo en "email"?.
- Como agrego varios productos en "line_items"
checkout_object = {
"name": f"Pedido REF {id_pedido}",
"type": "PaymentLink",
"recurrent": False,
"expired_at": int((datetime.today() + timedelta(days=1)).timestamp()),
"allowed_payment_methods": ["cash", "card", "bank_transfer"],
"needs_shipping_contact": False,
"monthly_installments_enabled": False,
"monthly_installments_options": [3, 6, 9, 12],
"order_template": {
"line_items": [{
"name": "Productos",
"unit_price": gran_total*100,
"quantity": 1
}],
"currency": "MXN",
"customer_info": {
"name": username,
"email": correo,
"phone": telefono,
}
}
}