Stripe: Received unknown parameters: success_url, line_items, cancel_url, mode


This Content is from Stack Overflow. Question asked by Martin Vera

Building the parameters gives me an error when I am trying to create a new Stripe session.

Map<String, Object> params = new HashMap<>();
    params.put("success_url", YOUR_DOMAIN + "/order_complete/");
    params.put("cancel_url", YOUR_DOMAIN + "/products");
    params.put("line_items", lineItems);
    params.put("mode", "payment");
    Session session = Session.create(params);

Im following the documentation but I am still receiving the error.



Check the Answers

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?