Skip to content
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

Possible solution for checkout modules #61

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

presteamshop
Copy link
Collaborator

  • Temporary/fake data is entered to simulate a customer for visitors and allow the quick purchase module to function, showing payment options without requiring a logged-in customer.
  • "Payment" cookies are created for the total amount of the cart, to avoid creating multiple payment intents when the cart value is changed.

- Temporary/fake data is entered to simulate a customer for visitors and allow the quick purchase module to function, showing payment options without requiring a logged-in customer.
- "Payment" cookies are created for the total amount of the cart, to avoid creating multiple payment intents when the cart value is changed.
- Fake information is no longer sent. Instead, the Customer or Address is not sent to the payment intent if a valid object is not available.
- Additionally, when a user logs out, the cookies created by Monei are deleted.
die('Module is not active');
}

$data = Tools::file_get_contents('php://input');
if (!isset($_SERVER['HTTP_MONEI_SIGNATURE'])) {
die('HTTP_MONEI_SIGNATURE is not set');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not expose what is the reason, just throw Unauthorized error

This is so that if they change their address and that address has another country, I can show the payments according to the new country.
Additionally, validation is performed to create a new payment intention in the event that the payment has been pending and with a payment method association.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants