Skip to content

Commit

Permalink
#487 Fix redirection to Ya.Kassa (#488)
Browse files Browse the repository at this point in the history
* #473  Fix redirection to Ya.Kassa

* #473  Fix syntax error in es6
  • Loading branch information
duker33 authored Aug 6, 2018
1 parent d53aba1 commit f0e50b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions front/js/components/order.es6
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,14 @@

const isYandex = () => !config.sePayments.includes(getSelectedPayment());
if (isYandex()) {
var submitForm = DOM.yandexForm;
// @todo #473:30m Test order redirect to ya.kassa
server.sendYandexOrder(orderInfo)
.then((formData) => renderYandexForm(formData));
.then((formData) => renderYandexForm(formData))
// setTimeout to wait "onOrderSend" handling
.then(() => setTimeout(() => $(DOM.yandexForm).submit(), 100));
} else {
var submitForm = DOM.fullForm;
$(DOM.fullForm).submit();

This comment has been minimized.

Copy link
@ArtemijRodionov

ArtemijRodionov Aug 7, 2018

Contributor

@duker33 We should submit with delay both of form. Currently only ya form is delayed

}
// Wait handling of onOrderSend
setTimeout(() => $(submitForm).submit(), 100);
}

/**
Expand Down

1 comment on commit f0e50b7

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on f0e50b7 Aug 6, 2018

Choose a reason for hiding this comment

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

Puzzle 473-f28eab07 discovered in front/js/components/order.es6 and submitted as #489. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

Please sign in to comment.