gringotts v1.0.0 Gringotts.Gateways.Cams
Link to this section Summary
Functions
payment = %CreditCard{
number: "4111111111111111",
month: 11,
year: 2018,
first_name: "Longbob",
last_name: "Longsen",
verification_code: "123",
brand: "visa"
}
credit_card = %CreditCard{
number: "4242424242424242",
month: 11,
year: 2018,
first_name: "Longbob",
last_name: "Longsen",
verification_code: "123",
brand: "visa"
}
address = %{
name: "Jim Smith",
address1: "456 My Street",
address2: "Apt 1",
company: "Widgets Inc",
city: "Ottawa",
state: "ON",
zip: "K1C2N6",
country: "CA",
phone: "(555)555-5555",
fax: "(555)555-6666"
}
options = [
config: %{
username: "testintegrationc",
password: "password9"
},
order_id: 1,
billing_address: address,
description: "Store Purchase",
]
Validates the config dynamically depending on what is the value of required_config
Link to this section Functions
Link to this function
purchase(money, payment, options)
payment = %CreditCard{
number: "4111111111111111",
month: 11,
year: 2018,
first_name: "Longbob",
last_name: "Longsen",
verification_code: "123",
brand: "visa"
}
credit_card = %CreditCard{
number: "4242424242424242",
month: 11,
year: 2018,
first_name: "Longbob",
last_name: "Longsen",
verification_code: "123",
brand: "visa"
}
address = %{
name: "Jim Smith",
address1: "456 My Street",
address2: "Apt 1",
company: "Widgets Inc",
city: "Ottawa",
state: "ON",
zip: "K1C2N6",
country: "CA",
phone: "(555)555-5555",
fax: "(555)555-6666"
}
options = [
config: %{
username: "testintegrationc",
password: "password9"
},
order_id: 1,
billing_address: address,
description: "Store Purchase",
]
Link to this function
validate_config(config)
Validates the config dynamically depending on what is the value of required_config
Link to this function
verify(credit_card, options)