-
Notifications
You must be signed in to change notification settings - Fork 47
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
2 3 stable fix #12
base: 2-3-stable
Are you sure you want to change the base?
2 3 stable fix #12
Conversation
@huoxito Hey Washington. Here is the updated version we have had to hack to get everything working more inline with how Spree expects payments to be handled. If you have take a look at what we have done then we should have a chat to discuss. Basically, I've take a much different approach on the HPP payments. Rather than redirecting the user from the payment view, the view now sends an alternative_payment_source source back with the select hpp payment method. We attempt to process payments in the payment state and therefore this enables a payment record to be created in the DB in the processing state. We then raise an exception when attempting to authorise using the Gateway, which is rescued and then the user is redirected. This not only falls much more inline with the Spree standard flow, it also keeps a record of the payments. Once the user is returned from the HPP the payment record status is simply updated and checkout processed s normal. |
hey @joe, so I just run your approach here for processing via encrypted gateway and works pretty great, (ps. didn't need to add any decorator considering theres no confirm step because spree won't actually load the payments from database I believe I'm thinking about calling couldn't review the hpp payment stuff yet, see e95e8f8929cd^...3b19427 and wvanbergen/adyen#86 for some progress on this |
hey guys, I've pushed the changes included related to grabbing the card last digits on authorise response to both master and 2-3-stable please see 06685dc...b9d4c44 (note it points to a new branch of my adyen fork) I took another look at the Payment::Processing api and I couldn't find a way around to use that here when setting up the profile. So far I still feel that the current approach is easier to debug and support because we clearly see all calls in the same method (we authorise, get the last digits, get the recurring token and mark the payment as processing). Splitting the profile set up across the normal spree flow, About the HPP stuff sorry but I'm not sure I understand the motivation to make it go through the usual spree payments flow. I see the appeal here for also letting things to be triggered only on Keep in mind that the current 3D implementation takes a very similar approach, if 3D card is detected on checkout the payment is not created at all at that point. User will be redirected to Adyen servers and once back to your store a payment will be created from scratch. (now that I put more thought about it I'm all for adding some more log calls across this process for the sake of keeping record of whats going on, here for example before raising |
No description provided.