mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-30 11:24:21 +01:00
78518e17fb
We prevent the currency from being changed if any stripe payment was made, because a stripe user cannot made pay with different currencies. If we try to charge a user with a different currency than the currency he used for a previous payment, this will fail; so we must prevent this case
18 lines
384 B
JavaScript
18 lines
384 B
JavaScript
'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'
|
|
}
|
|
}
|
|
);
|
|
}]);
|