Comments (2)
Hmm, something seems to be very wrong in this shop.
I am not able to reproduce this behaviour in my development-shops nor would the modules code allow this to happen.
When you select payment with PayPal in the checkout and you are redirected to PayPal you should have an order with Status Pending und no invoice in your backend.
When pressing the cancel and return to shop button on the PayPal site you should be redirected to:
https://YOURSHOP.URL/payone/onepage/cancel/
The order should then be cancelled here:
https://github.com/PAYONE-GmbH/magento-2/blob/master/Controller/Onepage/Cancel.php#L105
There being a paid invoice is the strangest part.
The Payone module does not create an invoice at all when generating the order before redirect to PayPal nor when the order is being completed upon return after payment.
The invoice is handled in the following way:
Pre-auth mode: The invoice has to be created manually through the backend, it is set to paid automatically when the Capture request to Payone was successful
Auth mode: When Payone sends the APPOINTED TransactionStatus to your shop (shortly after order completion) an unpaid invoice is created. When Payone sends the PAID TransactionStatus to your shop the invoice is set to paid.
This is handled here:
https://github.com/PAYONE-GmbH/magento-2/blob/master/Observer/Transactionstatus/Appointed.php
and here:
https://github.com/PAYONE-GmbH/magento-2/blob/master/Observer/Transactionstatus/Paid.php
I can only assume that some other module is interfering with the Payone module there.
from magento-2.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from magento-2.
Related Issues (20)
- Product quantity is reduced on payment error HOT 4
- Missing handling of region-codes (Magento/ISO vs. Payone api) HOT 1
- when selecting credit card type showing error HOT 3
- Magento2 dont have option to map paid to processing HOT 1
- Facing multiple issue after integrate payone HOT 3
- Facing multiple issue after integrate payone HOT 1
- PayOne ApplePay compatibility with Magento Cloud HOT 2
- Adding PHP 8.2 support for Magento 2.4.6 release HOT 1
- deprecated _isScopePrivate in Totals.php HOT 3
- Credit card payment after canceling payment process still authorized and order status processing HOT 2
- Add compatibility to PHP 8.2 HOT 2
- Cannot checkout with PayPal Express HOT 6
- Version 3.8.1 : Deprecated Functionality: Function utf8_encode() HOT 8
- Version 3.8.1: Deprecated Functionality: Creation of dynamic property HOT 3
- PayPal Express Button does not respect Minimal Order Amount HOT 1
- Error 923 Payment type not available for this currency or card type Set correct currency, type of payment, type of card, type of account or portalid HOT 3
- Errorcode 1610 - probably rounding error in calculation of order amount HOT 1
- Issue with canceled orders HOT 1
- Random paypal/creditcard orders stuck in status "processing" 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 magento-2.