Skip to main content

Add Payment Method

Payment methods are added automatically during the subscription checkout flow via the payment provider. There is no direct API endpoint to add a payment method.

How to Add a Payment Method

Payment methods are captured during the redirect payment flow when you subscribe to a plan:

  1. Call POST /billing/subscribe with a plan ID
  2. Redirect the user to the redirectUrl returned in the response
  3. The user completes payment on the payment provider's secure checkout page
  4. The payment method is automatically saved and associated with your organization
  5. The user is redirected back to your application

Alternative: Update via Payment Provider Portal

Some payment providers offer a customer portal where users can manage their payment methods directly:

  • View saved payment methods
  • Add new payment methods
  • Update card details
  • Set default payment method

Contact your payment provider or check their documentation for portal access details.

Notes

  • All payment data is handled securely by the payment provider and is never directly accessible to EntryGuard or your application.
  • Payment methods added during checkout are automatically set as the default unless you have an existing default payment method.
  • To remove a payment method, use the DELETE /billing/payment-methods/{id} endpoint.