1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-02 22:52:21 +01:00
Sylvain fd5c3a87ce rename /api/payment to /api/stripe
other payment gateways will have their own separate endpoints
2021-04-12 10:45:41 +02:00

18 lines
380 B
JavaScript

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