Skip to content

Commit

Permalink
fixed orderId cannot finded problem
Browse files Browse the repository at this point in the history
  • Loading branch information
BeycanDeveloper committed Mar 22, 2024
1 parent 8392c71 commit e4b4428
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public function __construct()
10,
[
'orderId' => function ($tx) {
if (!isset($tx->orderId)) {
return esc_html__('Waiting...', 'wpforms-cryptopay');
}
return Helpers::run('view', 'components/link', [
'url' => sprintf(admin_url('admin.php?page=wpforms-payments&view=payment&payment_id=%d'), $tx->orderId), // @phpcs:ignore
'text' => sprintf(esc_html__('View payment #%d', 'wpforms-cryptopay'), $tx->orderId)
Expand Down

0 comments on commit e4b4428

Please sign in to comment.