Docs

Update a payment method using the API and Paddle.js

Use the new get a transaction to update payment method operation in the Paddle API to build a workflow for updating customer payment details for a subscription.

Product area

  • Subscriptions
  • Transactions

Tooling

  • API

Released

June 29, 2023

Status

Released

API version

Version 1

What's new?

We added the get a transaction to update payment method operation to the Paddle API. You can use it to build a workflow to let customers update their payment details for a subscription.

GET /subscriptions/{subscription_id}/update-payment-method-transaction
subscription_id string

Unique Paddle ID for this subscription entity, prefixed with sub_

How it works

Paddle Checkout handles securely capturing card details or other payment method. You should use Paddle Checkout to capture updated payment details for a subscription.

To open Paddle Checkout for an existing subscription to update payment details, you need a transaction for that subscription. The new get a transaction to update payment method operation returns a transaction that you can pass to Paddle.js to open a checkout for it.

You can use the new operation to build a workflow to let customers update their payment details.

Next steps

This change is available in version 1 of the Paddle API.

It's a non-breaking change, meaning it doesn't impact existing integrations.

Summary of changes

Entity Field Change Type
Subscriptions GET Get a transaction to update payment method + Added API operation

Was this page helpful?