Payments

Resume a parked renewal

Changed on

Charges the saved card again, with the buyer present, for a payment their bank declined until they authenticate (such as with 3DS). Retrieve the payment afterward to get the bank's challenge from next_action; once the buyer completes it, they land on return_url, or on Whop's hosted verification page if none was given. Only the buyer can call this, with the payment's client_secret in the body, an OAuth token for their own account with the member:payment_methods:use scope, or the token from a verified payment session intent. An API key gets a 403. Has no effect on a payment that is not waiting on authentication.

post/payments/{payment_id}/resume

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    • none
    • or HTTP bearer

Path parameters

payment_id, string required

The unique identifier of the payment.

Headers

Idempotency-Key, string
Example:d9105228-4a08-46b1-8b91-42fed586d383

A unique key that makes this request safe to retry. See Idempotent requests.

Request body

object required
client_secret, string

The payment's own client_secret, for a buyer without a token.

return_url, string

Where the buyer continues after completing an off-site step. Must be an absolute https URL without credentials (http is allowed for localhost), at most 2,048 characters. Defaults to Whop's hosted verification page. Ignored when the payment is not waiting on authentication.

Example request

{
  "return_url": "https://shinetime.example/billing/recovered"
}

Response

Resume requested

PaymentStatus required
account, AccountSummary nullable required
auto_capture_at, string nullable required

When Whop will capture this authorization automatically, as an ISO 8601 timestamp. null when no automatic capture was requested.

capture_expires_at, string nullable required

When the card authorization must be captured, as an ISO 8601 timestamp. null when this payment was not authorized for later capture.

id, string required

The payment this status describes, prefixed pay_.

last_payment_error, PaymentLastPaymentError nullable required
next_action, union required

What the buyer must do to finish. type picks the shape and each type carries only its own data, so switching on type gives you exactly that step's payload.

object, string required

Always payment_status.

processing_details, PaymentProcessingDetails nullable required
return_url, string nullable required

Where to send the buyer once the payment reaches a resting state, or null to leave them where they are. Editable until they return — see the return_url operation.

status, 'requires_confirmation' | 'requires_action' | 'requires_capture' | 'confirming' | 'processing' | 'succeeded' | 'canceled' required

How far the payment has got. requires_confirmation — nothing attempted yet, or the last attempt failed and can be retried. requires_action — the buyer has a step outstanding; see next_action. requires_capture — the card authorization is holding funds and must be captured. confirming — the buyer has done their part and the processor is deciding. processing — with processing_details, the money is moving; without them, the charge is still being decided and the status should be read again. succeeded — collected. canceled — voided or written off.

Example response

{
  "account": {
    "id": "biz_xxxxxxxxxxxxxx",
    "title": "Shine Time Auto Detailing"
  },
  "capture_expires_at": "2026-01-01T12:00:00.000Z",
  "id": "pay_xxxxxxxxxxxxxx",
  "last_payment_error": {
    "code": "processing_error",
    "decline_code": "insufficient_funds",
    "message": "Your card was declined."
  },
  "next_action": {
    "data": {
      "frame_max_width": 500,
      "url": "https://psp.example/3ds/challenge"
    },
    "render": [
      "inline"
    ],
    "type": "redirect"
  },
  "object": "payment_status",
  "processing_details": {
    "expected_by": "2026-01-01T12:00:00.000Z"
  },
  "return_url": "https://shinetime.example/checkout/done",
  "status": "succeeded"
}

Changes

    • warning

      added the new card_not_activated enum value to the last_payment_error/oneOf[#/components/schemas/PaymentLastPaymentError]/decline_code response property for the response status

    • warning

      added the new invalid_billing_address enum value to the last_payment_error/oneOf[#/components/schemas/PaymentLastPaymentError]/decline_code response property for the response status