paddle_update_customer | R Documentation |
Updates an existing customer using their Paddle ID.
paddle_update_customer(
id,
name = NULL,
email = NULL,
status = NULL,
custom_data = NULL,
locale = NULL
)
id |
Character. Paddle customer ID (required). |
name |
Character. Full name of the customer. Optional (can be 'NULL' to remove). |
email |
Character. Email address of the customer. Optional. |
status |
Character. Status of the customer ('"active"' or '"archived"'). Optional. |
custom_data |
Named list of custom metadata. Optional (can be 'NULL' to remove). |
locale |
Character. Locale string (IETF BCP 47). Optional. |
A list with the updated customer info.
set_paddle_mode("sandbox")
# Requires a valid id
result <- paddle_update_customer(
id = "ctm_123",
name = "Updated Name",
status = "active"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.