Giter Site home page Giter Site logo

Comments (2)

crevillo avatar crevillo commented on July 17, 2024

Hi. I see your point and your explanation. but on the other hand, you're saying that you're trying to pay for this order, which i understand, but it doesn't mean necessary that you are using the same "payment".

It seems to me you're designing relations between order and payments in a "OneToOne" way, butto me an order can many "payment attempts"

In other words, when the user comes back to pay for the order, say, order with id 100 why don't create a new payment for that order?

You will end probably with a table of payments like, more or less

payment_id | order_id | status
1                  | 100        | cancelled by user
2                  | 100        | cancelled by user
3                  | 100        | ok

so, when the user tries to pay again, you create a new payment and at that time Ds_Signature will be false....

Other option could be modify that condition to check for other of the existing values, but to me this is more easy to maintain. Is what Sylius does, btw.

Finally, i think currently, if you don't create a another payment, you couldn't pay for the order again if the for any reason credit card is rejected in redsys side.

Cheers.

from payum-redsys.

marcverney avatar marcverney commented on July 17, 2024

Ooop, I've just realized I never replied here, sorry. Your suggestion to use a payment object instead of leveraging the order directly works. What had confused me is that Redsys treats this object as an order, for example it uses its id to prevent you from paying twice. But anyway, everything works fine, thank you for your help, Carlos.

from payum-redsys.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.