Skip to content

Commit

Permalink
Pass product payment endpoint urls to front
Browse files Browse the repository at this point in the history
ISSUE: AD4CR22I-20
  • Loading branch information
filipkojic committed Jan 10, 2025
1 parent fd05fe6 commit 42a8707
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ export default class ExpressCheckoutPlugin extends Plugin {
paymentMethodsResponse: data.paymentMethodsResponse,
onAdditionalDetails: this.handleOnAdditionalDetails.bind(this),
onSubmit: function (state, component) {
console.log("on submit funkcija")
}
// SUBMIT PAYMENT
}.bind(this)
};

return Promise.resolve(await AdyenCheckout(ADYEN_EXPRESS_CHECKOUT_CONFIG));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<div id="adyen-express-checkout">
<div id="adyen-express-checkout-options"
data-checkout-order-url="{{ adyenFrontendData.checkoutOrderUrl }}"
data-checkout-order-express-url="{{ adyenFrontendData.checkoutOrderExpressUrl }}"
data-express-checkout-config-url="{{ adyenFrontendData.expressCheckoutConfigUrl }}"
data-payment-handle-url="{{ adyenFrontendData.paymentHandleUrl }}"
data-payment-handle-express-url="{{ adyenFrontendData.paymentHandleExpressUrl }}"
data-payment-details-url="{{ adyenFrontendData.paymentDetailsUrl }}"
data-payment-finish-url="{{ adyenFrontendData.paymentFinishUrl }}"
data-payment-error-url="{{ adyenFrontendData.paymentErrorUrl }}"
Expand Down
2 changes: 2 additions & 0 deletions src/Subscriber/PaymentSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ public function onProductPageLoaded(PageLoadedEvent $event): void
'expressCheckoutConfigUrl' =>
$this->router->generate('payment.adyen.proxy-express-checkout-config'),
'checkoutOrderUrl' => $this->router->generate('payment.adyen.proxy-checkout-order'),
'checkoutOrderExpressUrl' => $this->router->generate('payment.adyen.proxy-checkout-order-express-product'),
'paymentHandleUrl' => $this->router->generate('payment.adyen.proxy-handle-payment'),
'paymentHandleExpressUrl' => $this->router->generate('payment.adyen.proxy-handle-payment-express-product'),
'paymentDetailsUrl' => $this->router->generate('payment.adyen.proxy-payment-details'),
'updatePaymentUrl' => $this->router->generate('payment.adyen.proxy-set-payment'),
'paymentFinishUrl' => $this->router->generate(
Expand Down

0 comments on commit 42a8707

Please sign in to comment.