View source: R/subscriptions.R
paddle_get_update_payment_transaction | R Documentation |
Returns a transaction that can be passed to a checkout to update payment details. Only for subscriptions where 'collection_mode' is 'automatic'.
paddle_get_update_payment_transaction(id)
id |
Character. Required. Paddle ID of the subscription (e.g. "sub_abc123"). |
Depending on subscription status: - For 'past_due', returns the most recent failed transaction. - For 'active', creates a new zero-amount transaction.
A list containing transaction details for payment method update.
set_paddle_mode("sandbox")
result <- paddle_get_update_payment_transaction(
id = "sub_123"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.