paddle_get_update_payment_transaction: Get a transaction to update payment method

View source: R/subscriptions.R

paddle_get_update_payment_transactionR Documentation

Get a transaction to update payment method

Description

Returns a transaction that can be passed to a checkout to update payment details. Only for subscriptions where 'collection_mode' is 'automatic'.

Usage

paddle_get_update_payment_transaction(id)

Arguments

id

Character. Required. Paddle ID of the subscription (e.g. "sub_abc123").

Details

Depending on subscription status: - For 'past_due', returns the most recent failed transaction. - For 'active', creates a new zero-amount transaction.

Value

A list containing transaction details for payment method update.

Examples


set_paddle_mode("sandbox")
result <- paddle_get_update_payment_transaction(
  id = "sub_123"
)


paddleR documentation built on June 24, 2025, 9:07 a.m.