# NOT RUN {
# }
# NOT RUN {
# Create a Tremendous Client
test_client <- trem_client_new(api_key = "TEST_YOUR-KEY-HERE",
sandbox = TRUE) # Sandbox environment so no actual money is sent
# To send a payment, you can simply pass in the client
# and specify the necessary fields.
payment1 <- trem_send_reward(client = test_client,
name = "first last",
email = "email@website.com",
reward_amount = 10,
currency_code = "USD",
delivery_method = "EMAIL",
payment_description_id = "payment-from-tremendousr-examples",
funding_source_id = "your-funding-id-from-tremendous",
reward_types = "Q24BD9EZ332JT", # ID for virtual visa gift card
parse = TRUE # Return a parsed API response
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab