-
Notifications
You must be signed in to change notification settings - Fork 59
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
Single page payment #150
base: 1.7
Are you sure you want to change the base?
Single page payment #150
Conversation
cc82d09
to
c72e6d7
Compare
src/Resources/views/bundles/SyliusShopBundle/Checkout/complete.html.twig
Outdated
Show resolved
Hide resolved
/** @var PaymentMethodInterface $paymentMethod */ | ||
$paymentMethod = $payment->getMethod(); | ||
/** @var GatewayConfigInterface $gatewayConfig */ | ||
$gatewayConfig = $paymentMethod->getGatewayConfig(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are so many places where we get data from the gateway config :/ We should definitely extract some service for that (but, of course, not in this PR 🖖)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need some more tests on that :/
-
after successful payment, there is another, cart payment in the fulfilled order
-
when you try to pay by PayPal or hosted payment method (like Przelewy24) and cancel it, it returns to complete page with processing payment - and after clicking "Place order" there is a
"Unable to generate a URL for the named route "sylius_paypal_plugin_pay_with_paypal_form" as such route does not exist.
exception.
5497178
to
cddc64c
Compare
4b199c3
to
3d8b66c
Compare
e91f27e
to
956e1ce
Compare
@@ -135,4 +150,39 @@ public function renderPaymentPageButtonsAction(Request $request): Response | |||
return new Response(''); | |||
} | |||
} | |||
|
|||
public function renderPayPalPaymentAction(Request $request): Response |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a huge fan of the "no verification at all" to who is the owner of the order. Changing the orderId
in the request could lead to some issues here. Is it right?
a61c84c
to
6f72e02
Compare
instead of default sylius button we get paypal form to finish our payment
fixes #116