Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
refund test
Browse files Browse the repository at this point in the history
  • Loading branch information
melekhine committed Aug 8, 2023
1 parent babbc71 commit b17c5b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions notify_test.go
Expand Up @@ -209,6 +209,12 @@ func TestHook(t *testing.T) {
t.Error("Amount is wrong", notify.Payment.Amount.Value, test.want.Payment.Amount.Value)
}

if notify.Type == RefundNotify {
if notify.Refund.RefundSplits[1].Commission.Amount.Value != 0.02 {
t.Error("Split refuns amount is wrong")
}
}

}
}

Expand Down

0 comments on commit b17c5b0

Please sign in to comment.