Appearance
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 ​
| Name | Type | Description | 
|---|---|---|
| paymentMethodId | string | ID of the payment method | 
| contextInstance | ShopwareApiInstance | ShopwareApiInstance | 
Return type ​
ts
Promise<{
  success: boolean;
}>
Properties ​
| Name | Type | Description | 
|---|
Usage example ​
WARNING
Example is generated automatically. Sometimes it's required to be adjusted to your needs.