# 快速上手

### Get your API key

Create a secret key in the dashboard. Keys start with `sk_live_` or `sk_test_`.

### Create a payment

```bash cURL
curl -X POST https://api.acme.dev/v1/payments \
  -H "Authorization: Bearer $ACME_KEY" \
  -d amount=2500 -d currency=usd
```

```python Python
import acme
acme.api_key = "sk_test_..."
payment = acme.Payment.create(amount=2500, currency="usd")
```

```typescript TypeScript {2}
import Acme from "acme";
const acme = new Acme(process.env.ACME_KEY);
const payment = await acme.payments.create({ amount: 2500, currency: "usd" });
```

### Handle the result

Check `status`. See [Accept a payment](/zh/guides/guides/accept-a-payment) for details.
