Skip to content
On this page

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

NameTypeDescription
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.

Open in StackBlitz

changeOrderPaymentMethod has loaded