ct_get_rewards: Get card eligibility for rewards

Description Usage Arguments Details Value Examples

View source: R/ct_get_rewards.R

Description

ct_get_rewards Check for rewards eligibility

Usage

1
2
ct_get_rewards(ct_token, client_id, cc_number, reward_program,
  merchant_code)

Arguments

ct_token

pass the output from ct_auth

cc_number

numeric credit card number to be encrypted with sha256

Details

Passes the ct_auth2 token, and clientid to test for card eligibility for a specific rewards program with a specific merchant.

Value

If all inputs are integer and logical, then the output will be an integer. If integer overflow http://en.wikipedia.org/wiki/Integer_overflow occurs, the output will be NA with a warning. Otherwise it will be a length-one numeric or complex vector.

Zero-length vectors have sum 0 by definition. See http://en.wikipedia.org/wiki/Empty_sum for more details.

Examples

1
2
3
4
5
6
ct_get_rewards

## Not run: 
sum("a")

## End(Not run)

bill-ash/citiR documentation built on Nov. 14, 2019, 12:12 a.m.