Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsegura committed Nov 6, 2024
1 parent 84b4909 commit 3aa3b63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion js/app/components/Payment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ export default function(formSelector, options) {
if (!isPaygreenInitialized) {
window.paygreenjs.attachEventListener(
window.paygreenjs.Events.ON_OPEN_POPUP,
(event) => console.log(event.detail.url)
(event) => {
window.location.href = event.detail.url;
}
);
window.paygreenjs.init({
paymentOrderID: createPaymentOrderResponse.data.id,
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Checkout/CheckoutPaymentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
if (in_array('conecs', $paygreenPlatforms)) {
$choices['Conecs'] = 'conecs';
}
if (in_array('restoflash', $paygreenPlatforms)) {
if (in_array('swile', $paygreenPlatforms)) {
$choices['Swile'] = 'swile';
}
}
Expand Down

0 comments on commit 3aa3b63

Please sign in to comment.