# Cannot retry subscription payment without payment method

You're trying to retry a payment for an automatically-collected subscription, but it doesn't have a payment method.

---

## Example

```json
{
  "error": {
    "type": "request_error",
    "code": "subscription_missing_payment_method_cannot_retry_payment",
    "detail": "Automatically-collected subscriptions require a payment method to retry payment.",
    "documentation_url": "https://developer.paddle.com/errors/subscriptions/subscription_missing_payment_method_cannot_retry_payment"
  },
  "meta": {
    "request_id": "00000000-0000-0000-0000-000000000000"
  }
}
```

## Details

| Attribute | Value |
| --- | --- |
| Status code | 400 |
| Error code | `subscription_missing_payment_method_cannot_retry_payment` |
| Error message | Automatically-collected subscriptions require a payment method to retry payment. |

## Common causes

- You're trying to retry a payment for a subscription, but no payment method is set.
- If the `customer_id` against this subscription has been replaced recently, the payment method against it was removed for security. It must be readded.

## Common solutions

- [Create a customer portal session](https://developer.paddle.com/api-reference/customer-portals/create-customer-portal-session) to capture a payment method from the customer, then retry payment.
- [Get a transaction to update payment method](https://developer.paddle.com/api-reference/subscriptions/update-payment-method) and pass to Paddle.js to capture a payment method from the customer, then retry payment.
