Skip to content
On this page

setDefaultCustomerPaymentMethod

Definition

Set payment method under provided ID as default

Signature

ts
export async function setDefaultCustomerPaymentMethod(
  paymentMethodId: string,
  contextInstance: ShopwareApiInstance = defaultInstance,
): Promise<{
  success: boolean;
}> 

Parameters

NameTypeDescription
paymentMethodId
string
ID of the payment method
contextInstance
ShopwareApiInstance
ShopwareApiInstance

Return type

ts
Promise<{
  success: boolean;
}>

Properties

NameTypeDescription

Usage example

WARNING

Example is generated automatically. Sometimes it's required to be adjusted to your needs.

Open in StackBlitz

setDefaultCustomerPaymentMethod has loaded