Comments (2)
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.
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)
- support for Payum 0.12 HOT 8
- Why don't you mark the payment as captured in the NotifyAction? HOT 2
- Reedireccion al fallar o cancelar un pago HOT 6
- Payum Link not working
- Undefined index: Ds_Signature HOT 1
- Fallo al conectar con el TPV HOT 17
- Function mcrypt_encrypt() is deprecated in PHP 7.1 HOT 3
- Implement with sylius and add refund action HOT 5
- ¿Cómo tomar acciones en función de la notificación de Redsys?
- Outdated documentation HOT 1
- Default OK and KO urls should use AfterUrl instead of TargetUrl HOT 2
- Error 500 after payment success HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from payum-redsys.