---
updatedAt: 2025-06-04T21:35:25.000Z
agentTools:
  projectIndex: https://documentation.paysimple.com/llms.txt
---

# Collect Payment for New Customer

### 1. [Create a new customer](https://documentation.paysimple.com/reference/new-customer)

```javascript
POST /v4/customer
{
    "FirstName": "Test",
    "LastName": "Person",
    "Email": "testperson@abcco.com"
}
```

### 2.  Add a [Credit Card](https://documentation.paysimple.com/reference/new-credit-card) or [Bank Account](https://documentation.paysimple.com/reference/new-ach)  to the Customer created in Step 1

```javascript
POST /v4/account/creditcard
{
    "CreditCardNumber": "4111111111111111",
    "ExpirationDate": "12/2033",
    "Issuer": "Visa",
    "BillingZipCode": "80202",
    "CustomerId": 9695143
}
```

### 3. [Collect the Payment](https://documentation.paysimple.com/reference/new-payment) using the Account Id created in Step 2

```javascript
POST /v4/payment
{
    "AccountId": 8989970,
    "Amount": 99.45
}
```

> 🚧 PCI Compliance Warning
>
> Any time cardholder data passes through your server, it can increase your PCI Compliance burden. Consider utilizing a [PaySimple checkout form](https://documentation.paysimple.com/docs/paysimplejs-getting-started) if it fits your use case.