Comments (4)
@arteme, the IPN URLs we have are never visited by customers; those endpoints are only used by the PSPs. I think it's correct to send 403 errors when the parameters cannot be parsed.
Once past the confirmation point, the payment processors have full control over the request/response cycle. You can add as many URLconf entries and views as you want as long as they are contained inside the payment processor class. It should be easily possible to add the REST call and issue redirects and/or error messages afterwards in process_order_confirmed
.
Please get back to me if you're having problems again -- maybe paste the code somewhere where I can see it, it might be easier to give pointers.
We are always interested in additional payment processors inside Plata btw!
(And sorry for not answering earlier, I missed this issue somehow.)
from plata.
@matthiask, you're absolutely right, IPN URLs are never visited by the end-user.
Quick off-topic question: are Ogone and PostFinance IPN handlers ever used? They are not actually referenced from anywhere.
I guess my real question boils down to the following use case:
The payment processing server may return an error code and error message from its REST call. It would be good to display this message to the end-user. Currently the basic shop "order_payment_failure" doesn't take any additional messages to show to the user. While I could very well override "order_payment_failure" URL in my own show instance, would it make sense to rather add this functionality to the default Plata shop?
from plata.
Yes, those IPN handlers are definitively used; the callback URL is to be entered in the merchant interface of Ogone/PostFinance. The Ogone/PostFinance servers (it's the same with PayPal by the way) send a POST to this IPN URL as soon as the buyer confirms the transaction. This URL is only used for a server to server request, never by the client.
Concerning messages: I'd use django.contrib.messages
everywhere and I think that this is sufficient for all feedback to the user.
from plata.
I think this issue can be closed?
from plata.
Related Issues (20)
- Change PRICE_INCLUDES_TAX per request/order HOT 2
- When adding an item to the cart get_prices is called twice
- When a user changes his contact information and has pending orders, there should be an option to update the address on those orders as well.
- question on succes order and balance remaining HOT 10
- Multiple product models or similar? HOT 1
- _discount_admin_state test failure under Django 1.6 HOT 4
- Switch to setuptools and install_requires
- By default, email addresses with more than 30 characters don't work.
- Multiple currencies issue when changing an existing setup HOT 3
- VAT issue HOT 3
- Specify exact dependencies instead of >=version (follow 12factor principle) HOT 1
- New payment modules HOT 1
- Adding new discount types HOT 1
- Using OrderItem.data in price calculation HOT 5
- Document order process flow HOT 1
- Take over the maintenance of this project HOT 6
- plata.shop.actions.export_as_csv_action: Point users to xlsxdocuments' export_select instead? HOT 2
- plata.shipping completion or removal? HOT 3
- Cannot do initial migration? HOT 2
- Installation instructions HOT 6
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 plata.