You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ApiError: The refund id appears invalid: chb_seinif (unexpected format)
at assertWellFormedId (C:\mollie-demo\node_modules\@mollie\api-client\dist\mollie.cjs.js:1933:11)
at PaymentChargebacksBinder.get (C:\mollie-demo\node_modules\@mollie\api-client\dist\mollie.cjs.js:3499:5)
Additional Context
I think the resource value passed to assertWellFormedId is incorrectly set to refund instead of chargeback.
When checkId is called, it will return false since prefixes[resource] gets evaluated to re_, but the value that was passed starts with chb_ causing assertWellFormedId to throw an error.
The text was updated successfully, but these errors were encountered:
Reproduction Steps
@mollie/api-client
version4.1.0
.Additional Context
resource
value passed toassertWellFormedId
is incorrectly set torefund
instead ofchargeback
.checkId
is called, it will returnfalse
sinceprefixes[resource]
gets evaluated tore_
, but the value that was passed starts withchb_
causingassertWellFormedId
to throw an error.The text was updated successfully, but these errors were encountered: