---
displayed_sidebar: homepage
---

import TypeList from "@site/src/components/TypeList"

# PaymentMethod

The attributes to update in the order's payment method.

## constructor

___

## Properties

<TypeList types={[{"name":"provider_id","type":"`string`","description":"The ID of the payment provider used in the order.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"data","type":"`Record<string, unknown>`","description":"The data to attach to the payment.","optional":true,"defaultValue":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/development/entities/repositories#retrieving-a-list-of-records" sectionTitle="PaymentMethod"/>
