paddle_create_customer | R Documentation |
If successful, your response includes a copy of the new customer entity.
paddle_create_customer(email, name = NULL, custom_data = NULL, locale = NULL)
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". |
A data frame with the new customer info.
set_paddle_mode("sandbox")
result <- paddle_create_customer(
email = "test@example.com",
name = "Test User",
custom_data = list(plan = "demo"),
locale = "en-US"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.