alitnk / monopay

💳 A node.js package for making payment transactions with different payment gateways
https://monopay.js.org
MIT License
114 stars 19 forks source link

What is `referenceId` in express example #18

Closed Keivan-sf closed 2 years ago

Keivan-sf commented 2 years ago

I was looking at this line in express example. I'm wondering if this is just simply a typo mistake with transactionId or BaseReceipt might actually contain a property called referenceId in some case? Either way I was unable to transform this code into typescript because of the type error below:

Property 'referenceId' does not exist on type 'BaseReceipt<any>'.ts(2339)
alitnk commented 2 years ago

Yeah it's probably just referenceId... I might have changed it and just forgotten to update it. (not sure though, 😬)

Keivan-sf commented 2 years ago

Right then. I'll just change it to transactionId for the example to be executable. Might as well pull a typescript implementation of it.