API/api.medcify.app/node_modules/razorpay/dist/resources/cards.js

15 lines
275 B
JavaScript
Raw Normal View History

2022-09-26 06:11:44 +00:00
'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);
}
};
};