mozilla / payments-service

This is a web service to support the Mozilla Payments web UI.
Other
5 stars 7 forks source link

Prevent creating a subscription with someone else's payment method #147

Closed kumar303 closed 9 years ago

kumar303 commented 9 years ago

Most form handlers in payments-service prevent a submission using another user's payment method URI with the utils.user_owns_resource(...) helper. We should add this to the subscription post endpoint to prevent a user from subscribing with someone else's payment method URI. This could lead to billing the wrong user.