

# Set up a payment auth and connector for your payment service provider

Before you take a payment, connect your payment service provider account to a Payment Manager. You do this once for each payment service provider account:

1. Collect your payment service provider account details.

1. Store them in AgentCore Identity as a payment auth, also called a payment credential provider.

1. Create a payment connector in your Payment Manager that references the payment auth.

Each payment service provider page lists the payment methods that the provider supports.

You can do all three steps in the console, or with the AWS CLI or AWS SDK. For AWS CLI and AWS SDK steps, and where to find each value, see the following pages:

**Topics**
+ [Set up a payment service provider connector in the console](#payments-agentic-commerce-setup-console)
+ [Set up Amazon Pay](payments-amazon-pay.md)
+ [Set up Stripe](payments-stripe.md)
+ [Set up PayPal](payments-paypal.md)

## Set up a payment service provider connector in the console
<a name="payments-agentic-commerce-setup-console"></a>

You can add a payment service provider connector when you create a Payment Manager, or add one to an existing Payment Manager. Each connector uses a payment auth that stores the payment service provider credentials.

 **To start a Payment Manager** 

1. Open the [Amazon Bedrock AgentCore console](https://console.aws.amazon.com/bedrock-agentcore/).

1. In the navigation pane, under **Connections**, choose **Payments**.

1. Choose **Payment managers**.

1. Choose **Create payment manager**.

1. Complete **Define payment manager details**. For the fields on this page, see [Create a Payment Manager and Connector](payments-create-manager.md).

1. Choose **Next**.

 **To add a payment service provider connector** 

1. On **Add payment connector**, for **Name**, enter a name for the connector. Valid characters are `a–z`, `A–Z`, and `0–9`. The name must start with a letter and can have up to 48 characters.

1. For **Payment type**, choose **Payment accounts for e-commerce**.

1. For **Payment auth**, choose an existing payment auth. To create one, choose **Create new**, and then follow the next procedure. If a payment auth that you just created doesn’t appear, choose **Refresh payment auths**.

1. To add a connector for another payment service provider, choose **Add connector**, and then repeat steps 1 to 3.

1. Choose **Next**.

1. Review the settings.

1. Choose **Create**.

 **To create a payment auth** 

1. In the **Create payment auth** panel, for **Payment provider**, choose **Stripe**, **PayPal**, or **Amazon Pay**.

1. For **Payment auth name**, enter a name. Valid characters are `a–z`, `A–Z`, `0–9`, underscore (`_`), and hyphen (`-`).

1. Enter the values for your payment service provider. For the fields, see the table that follows this procedure.

1. Choose **Create payment auth**. The console stores the credentials in AgentCore Identity and selects the new payment auth for the connector.

The following table lists the fields for each payment service provider.


| Payment service provider | Fields | 
| --- | --- | 
| Amazon Pay |  **Merchant ID**, **Store ID**, **Authorization token** (the MWS authorization token), **Region** (**North America** or **Europe (including UK)**), and the environment (**Sandbox** or **Live**). For where to find each value, see [Get your Amazon Pay merchant details](payments-amazon-pay.md#payments-amazon-pay-prerequisites). | 
| Stripe |  **Restricted API key**. For more information, see [Get your Stripe keys](payments-stripe.md#payments-stripe-prerequisites). | 
| PayPal |  **Client ID**, **Client secret**, and the environment (**Sandbox** or **Live**). For more information, see [Get your PayPal app credentials](payments-paypal.md#payments-paypal-prerequisites). | 

The environment is **Sandbox** by default. Choose **Live** to take real payments.

You can also create a payment auth before you create the Payment Manager. In the navigation pane, under **Connections**, choose **Outbound Auth**, and then choose **Add Payment Auth**. On this page, the fields are named **Name**, **Provider**, and the fields under **Provider configurations**. The name can have up to 50 characters.

To add a payment service provider connector to an existing Payment Manager, open the Payment Manager. In the **Payment connectors** section, choose **Add**. The **Create payment connector** page has the same **Name**, **Payment type**, and **Payment auth** fields.

The connector details page shows the connector status, the payment service provider, and the associated payment auth.