API/api.medcify.app/node_modules/razorpay/dist/resources/cards.js
2022-09-26 11:41:44 +05:30

15 lines
275 B
JavaScript

'use strict';
module.exports = function (api) {
return {
fetch: function fetch(itemId, callback) {
if (!itemId) {
throw new Error('`card_id` is mandatory');
}
return api.get({
url: '/cards/' + itemId
}, callback);
}
};
};