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

PPSYL-87 - On post select payment, mark order as checkout completed #141

Merged

Conversation

Jibbarth
Copy link
Member

No description provided.

The form must submit a new hidden input containing the token received on payment onComplete callback from the iframe.
In payment's details, we add a processing status and the token as the payment_id.
Then, payum first call a statusAction, and in that case, we retrieve it instead processing a capture.
@@ -88,6 +88,11 @@ public function execute($request): void
$this->paymentNotificationHandler->treat($request->getFirstModel(), $resource, $details);
}

if (PaymentInterface::STATE_PROCESSING === $details['status']) {
$resource = $this->payPlugApiClient->retrieve($details['payment_id']);
$this->paymentNotificationHandler->treat($request->getFirstModel(), $resource, $details);
Copy link
Member

Choose a reason for hiding this comment

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

trout ^^

Copy link
Member

@maxperei maxperei left a comment

Choose a reason for hiding this comment

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

yeye

Base automatically changed from feature/PPSYL-86-init-integratedPayment to feature/payment-integrated November 28, 2024 09:40
@Jibbarth Jibbarth merged commit 35d00fd into feature/payment-integrated Nov 28, 2024
0 of 3 checks passed
@Jibbarth Jibbarth deleted the feature/PPSYL-87-auto-complete-checkout branch November 28, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants