Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error 500 al hacer post crear pago con FlowAPI.. sandbox #29

Open
AAIING opened this issue Dec 13, 2023 · 1 comment
Open

error 500 al hacer post crear pago con FlowAPI.. sandbox #29

AAIING opened this issue Dec 13, 2023 · 1 comment

Comments

@AAIING
Copy link

AAIING commented Dec 13, 2023

Hola colega..

estoy implementando tu libreria sin exito las credenciales estan correctas... dejo el codigo del metodo..

`@cross_origin
@app.route('/pago', methods=['POST'])
def pago():

total = request.json['total'];
numpedido = request.json['pedido'];

api = FlowAPI(api_key=flow_key, api_secret=flow_api_secret, endpoint="sandbox")
parametros = {
    "apiKey": api.api_key,
    "amount": 10000,
    "currency": "CLP",
    "subject": "Ejemplo de Pago",
    "email": "[email protected]",
    "urlConfirmation": "https://mariofix.github.io/pyflowcl/uso/#crear-un-pago",
    "urlReturn": "https://mariofix.github.io/pyflowcl/uso/#crear-un-pago",
    "commerceOrder": "order_1234",
}
pago = api.objetos.call_payment_create(parameters=genera_parametros(parametros, api.api_secret))
return(pago)`

no se que puede ser.. consola del navegador me devuelve CORS pero eso esta habilitado no se si abrá que agregar algo mas ya que en PHP tuve que instalar un certificado para cifrar la comunicacion

@mariofix
Copy link
Owner

@AAIING todavia necesitas ayuda con esto?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants