Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
BeycanDeveloper committed Jul 21, 2024
1 parent bb746ab commit 23e27bd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,15 @@
nfRadio.channel('form-' + formId).request('add:extra', key, value);
}

app.events.add('confirmationCompleted', async ({transaction}) => {
app.events.add('confirmationCompleted', async (ctx) => {
app.modal.close();
notPaidYet = false;
helpers.closePopup();
await helpers.sleep(100);
ctx.disablePopup = true;
$('.overlay').remove();
addExtraData(
params.formId,
'cryptopay_transaction_hash',
transaction.id || transaction.hash
ctx.transaction.id || ctx.transaction.hash
);
helpers.successPopup(paymentCompletedMessage)
submitForm(params.formId);
Expand Down

0 comments on commit 23e27bd

Please sign in to comment.