Home > @shopware-pwa/shopware-6-client > changeOrderPaymentMethod

# changeOrderPaymentMethod() function

Change payment method for given order

Signature:

export declare function changeOrderPaymentMethod(orderId: string, paymentMethodId: string, contextInstance?: ShopwareApiInstance): Promise<{
    apiAlias: string;
    success: boolean;
}>;

# Parameters

Parameter Type Description
orderId string
paymentMethodId string
contextInstance ShopwareApiInstance

Returns:

Promise<{ apiAlias: string; success: boolean; }>

# Exceptions

ClientApiError