Appearance
changeOrderPaymentMethod ​
Definition ​
Change payment method for given order
Signature ​
ts
export async function changeOrderPaymentMethod(
orderId: string,
paymentMethodId: string,
contextInstance: ShopwareApiInstance = defaultInstance,
): Promise<{
apiAlias: string;
success: boolean;
}>
Parameters ​
Name | Type | Description |
---|---|---|
orderId | string | Id of an order |
paymentMethodId | string | |
contextInstance | ShopwareApiInstance |
Return type ​
ts
Promise<{
apiAlias: string;
success: boolean;
}>
Usage example ​
WARNING
Example is generated automatically. Sometimes it's required to be adjusted to your needs.