Skip to content

Commit

Permalink
Fix admin create invoice error
Browse files Browse the repository at this point in the history
  • Loading branch information
andykim committed Apr 27, 2022
1 parent 7a5d107 commit 732cc19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/gateways/xendit/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
* @return void
*/
add_hook('InvoiceCreation', 1, function ($vars) {
if($vars['status'] == 'Draft')
return;

$xenditRecurring = new Recurring();
$invoice = $xenditRecurring->getInvoice($vars['invoiceid']);

Expand Down

0 comments on commit 732cc19

Please sign in to comment.