omise / omise-node

Omise Node.js Library
https://docs.opn.ooo
101 stars 52 forks source link

Refund missing argument #136

Closed rathakit closed 4 years ago

rathakit commented 4 years ago

Version 0.8.1 https://www.omise.co/refunds-api -> Create a refund omise.charges.createRefund( 'chrg_test_4ype2jynk2len88i4er', {'amount': 10000}, function(error, refund) { / Response. / } );

From the example, it provides 3 arguments required; however, when calling this function, getting the error as following. Expected 1-2 arguments, but got 3.ts(2554)

rezigned commented 4 years ago

Thank you for reporting. New version 0.8.2 already addressed this problem.