File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ exports.get = function*() {
1717 this . throw ( 404 ) ;
1818 }
1919
20- if ( this . transaction . status != Transaction . STATUS_PENDING || this . transaction . paymentMethod != 'invoice' ) {
20+ if ( ( this . transaction . status != Transaction . STATUS_PENDING && this . transaction . status != Transaction . STATUS_SUCCESS ) || this . transaction . paymentMethod != 'invoice' ) {
2121 this . log . debug ( "Improper transaction" , this . transaction . toObject ( ) ) ;
2222 this . throw ( 400 ) ;
2323 }
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ function* getOrderInfo(order) {
5050 statusText : "Оплата получена" ,
5151 transaction : transaction ,
5252 descriptionProfile : transaction . paymentMethod == 'invoice' && transaction . paymentDetails . agreementRequired ?
53- `Вы можете повторно скачать <a href="proxy.php?url=https%3A%2F%2Fwww.github.com%2Fpayments%2Finvoice%2F%3Cspan+class%3D"pl-s1">${ transaction . number } /invoice.docx">скачать счёт</a>
53+ `Вы можете повторно скачать <a href="proxy.php?url=https%3A%2F%2Fwww.github.com%2Fpayments%2Finvoice%2F%3Cspan+class%3D"pl-s1">${ transaction . number } /invoice.docx">счёт</a>
5454 и <a href="/payments/invoice/${ transaction . number } /agreement.docx">договор с актом</a>.` :
5555 ''
5656 // no title/accent/description, because the action on success is order-module-dependant
You can’t perform that action at this time.
0 commit comments