You are reading the documentation for v7.x and earlier, which is no longer the latest version. Switch to v8.x
getPaymentTypes
Method that gets the payment types available to the user's B2B organization
This method sends a POST request to the getPaymentTypes endpoint of the Alokai Middleware. In turn, it exchanges data with the https://api.c1jvi8hu9a-vsfspzooa1-d1-public.model-t.cc.commerce.ondemand.com/occ/v2/swagger-ui/index.html#/B2B%20Miscs/getPaymentTypes endpoint exposed by the SAP OCC API B2B Orders Controller.
Signature
export declare function getPaymentTypes<Res extends B2BPaymentTypeList = B2BPaymentTypeList,
Props extends GetPaymentTypesProps = GetPaymentTypesProps>(
props: Props,
options?: MethodOptions
): Promise<Res>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
props | Required | Props | Parameter object which can be used with this method. Refer to its type definition to learn about possible properties. |
options | Optional | MethodOptions | Options that can be passed to additionally configure the request or customize the logic in a plugin. |
Returns
Returns payment types available to the user's B2B organization
Referenced Types
- B2BPaymentTypeList
GetPaymentTypesProps- MethodOptions
Examples
const paymentTypes = await sdk.commerce.getPaymentTypes();