paddle_create_customer {paddleR} | R Documentation |
Create a Customer.
Description
If successful, your response includes a copy of the new customer entity.
Usage
paddle_create_customer(email, name = NULL, custom_data = NULL, locale = NULL)
Arguments
email |
Character. Email address for the customer. Required. |
name |
Character. Full name of the customer. Optional. |
custom_data |
Named list of custom metadata. Optional. |
locale |
Character. Locale string (IETF BCP 47). Optional, defaults to "en". |
Value
A data frame with the new customer info.
Examples
set_paddle_mode("sandbox")
result <- paddle_create_customer(
email = "test@example.com",
name = "Test User",
custom_data = list(plan = "demo"),
locale = "en-US"
)
[Package paddleR version 0.1.2 Index]