1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-06 21:46:17 +01:00
fab-manager/app/assets/javascripts/services/payment.js

18 lines
384 B
JavaScript
Raw Normal View History

'use strict';
Application.Services.factory('Payment', ['$resource', function ($resource) {
return $resource('/api/payments',
{}, {
confirm: {
method: 'POST',
url: '/api/payments/confirm_payment',
isArray: false
},
onlinePaymentStatus: {
method: 'GET',
url: '/api/payments/online_payment_status'
}
}
);
}]);