# Edit the Payment Method screen

To edit the Payment Method screen:

1. Double-click the **paymentMethodScreen** screen.
2. Delete all OOTB components from the subflow.
3. Type `drb2b_payments` in the **Search components** field and click **drb2b\_payments**.![](https://2148947133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw4LUVtzRnCnYyAQNDxTM%2Fuploads%2Fgit-blob-6880abbcc176979ef072446c447916774f4b41a0%2FSearch%20components%20drb2b_drUtil.png?alt=media)
4. Enter the following values in the fields:

   * **API Name**: Type `drPayments` or any other name with no restrictions.
   * **Dropin Config**: Provide data for this designer attribute in JSON format. For example:\
     `{"options.button.type": custom, "options.button.buttonText": 'test', "test": "test3"}`
   * **Record Id**: Type `{!cartId}`.

   See [Designer attributes](https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-1.1/extend-the-salesforce-lightning-app/customizing-the-lightning-web-components/designer-attributes) for additional information.
5. Click **Done**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-1.1/integrate-the-salesforce-lightning-app/step-17-integrate-the-digital-river-components-into-the-checkout-flow/subflow-configuration/configure-the-payment-and-billing-address-subflow/edit-the-payment-method-screen.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
