Skip to content

Commit 2caefda

Browse files
committed
formated code
1 parent 4c9a8e9 commit 2caefda

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/payments.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,9 @@ export async function attachPaymentMethod({
369369

370370
export async function detachPaymentMethod({secretKey, id, customerId}) {
371371
const response = await server.loadJson(
372-
`${Config.apiUrl}${Endpoints.PROJECT.PAYMENTS.METHODS.DETACH(id)}?customerId=${customerId}`,
372+
`${Config.apiUrl}${Endpoints.PROJECT.PAYMENTS.METHODS.DETACH(
373+
id
374+
)}?customerId=${customerId}`,
373375
{
374376
method: 'DELETE',
375377
headers: {

src/routes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ export const CONFIG = {
143143
METHODS: {
144144
GET_SETUP: '/v2/payments/methods/setup',
145145
ATTACH: '/v2/payments/methods/attach',
146-
DETACH: (id) => `/v2/payments/methods/${id}`,
147-
UPDATE: (id) => `/v2/payments/methods/${id}`,
146+
DETACH: (id) => `/v2/payments/methods/${id}`,
147+
UPDATE: (id) => `/v2/payments/methods/${id}`,
148148
},
149149
SUBSCRIPTIONS: {
150150
CREATE: (customerId) =>

0 commit comments

Comments
 (0)