Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/APIUtils/APIUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
| TOTAL_TOKEN_COUNT => `v1/customers/total-payment-methods`
| RETRIEVE_PAYMENT_METHOD =>
switch id {
| Some(paymentMethodId) => `v2/payment-methods/${paymentMethodId}`
| Some(paymentMethodId) => `v1/payment-methods/${paymentMethodId}`
| None => ""
}
/* MERCHANT ACCOUNT DETAILS (Get,Post and Put) */
Expand Down Expand Up @@ -275,15 +275,15 @@
}
| PAYMENT_METHODS =>
switch methodType {
| Get => "payemnt_methods"

Check warning on line 278 in src/APIUtils/APIUtils.res

View workflow job for this annotation

GitHub Actions / Spell check

"payemnt" should be "payment".
| _ => ""
}
| PAYMENT_METHODS_DETAILS =>
switch methodType {
| Get =>
switch id {
| Some(id) => `payemnt_methods/${id}`

Check warning on line 285 in src/APIUtils/APIUtils.res

View workflow job for this annotation

GitHub Actions / Spell check

"payemnt" should be "payment".
| None => `payemnt_methods`

Check warning on line 286 in src/APIUtils/APIUtils.res

View workflow job for this annotation

GitHub Actions / Spell check

"payemnt" should be "payment".
}
| _ => ""
}
Expand Down Expand Up @@ -1256,7 +1256,7 @@
| None => `${userUrl}/${(userType :> string)->String.toLowerCase}`
}

// POST LOGIN QUESTIONARE

Check warning on line 1259 in src/APIUtils/APIUtils.res

View workflow job for this annotation

GitHub Actions / Spell check

"QUESTIONARE" should be "QUESTIONNAIRE".
| #SET_METADATA =>
switch queryParameters {
| Some(params) => `${userUrl}/${(userType :> string)->String.toLowerCase}?${params}`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ module VaultedPaymentMethodsTable = {
let (tableData, setTableData) = React.useState(_ => [])
let (showModal, setShowModal) = React.useState(_ => false)
let (paymentId, setPaymentId) = React.useState(_ => "")
let customerIdFromUrl = url.path->List.toArray->Array.get(4)->Option.getOr("")
let customerIdFromUrl = if isOrchestrationVault {
url.path->List.toArray->Array.get(2)->Option.getOr("")
} else {
url.path->List.toArray->Array.get(4)->Option.getOr("")
}
let mixpanelEvent = MixpanelHook.useSendEvent()

let fetchPaymentMethods = async () => {
Expand Down
Loading