Closed everythinginjs closed 1 year ago
Thanks for reporting, there is indeed a problem with referenceId
since it simply doesn't exist in zarinpal verification type
But note that authority is not passed along options, it's passed in the second parameter (considered to be in req.query
in this example which I think we could improve that as well)
Thanks @Keivan-sf!
in verifyPayment method of zarinpal in the docx. it is suggested to pass
referenceId
but when read your code figured out it must beAuthority
.https://github.com/alitnk/monopay/blob/c0b45c40719fb7b9d2ccd169ba5fbff4445b26ec/src/drivers/zarinpal/index.ts#L44
I have had spent an hour scratching my head why my endpoint return 404.