mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-02 22:52:21 +01:00
fd5c3a87ce
other payment gateways will have their own separate endpoints
18 lines
380 B
JavaScript
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'
|
|
}
|
|
}
|
|
);
|
|
}]);
|