Comparing version 0.2.3 to 0.2.4
@@ -22,3 +22,3 @@ (function() { | ||
'error processor.bank_info invalid': 'Invalid banking information.', | ||
'error processor.transaction not_allowed': 'Merchant can not accept this card.', | ||
'error processor.transaction not_allowed': 'This transaction type is not allowed.', | ||
'error processor.transaction type_invalid': 'Requested transaction type is not allowed for this card/merchant.', | ||
@@ -53,4 +53,6 @@ 'error processor.transaction method_invalid': 'The requested transaction could not be performed for this merchant.', | ||
'error input.expiry_month not_numeric': 'The expiration month was invalid.', | ||
'error input.expiry_month is_invalid': 'The expiration month was invalid.', | ||
'error input.expiry_year is_blank': 'The expiration year was blank.', | ||
'error input.expiry_year not_numeric': 'The expiration year was invalid.' | ||
'error input.expiry_year not_numeric': 'The expiration year was invalid.', | ||
'error input.expiry_year is_invalid': 'The expiration year was invalid.' | ||
}; | ||
@@ -57,0 +59,0 @@ |
@@ -35,2 +35,3 @@ (function() { | ||
this.attributes = attributes != null ? attributes : {}; | ||
this.attributes = extend({}, this.attributes); | ||
if (config.sandbox) { | ||
@@ -37,0 +38,0 @@ extend(this.attributes, { |
@@ -36,2 +36,3 @@ (function() { | ||
this.processorToken = processorToken; | ||
this.token = this.processorToken; | ||
} | ||
@@ -41,2 +42,6 @@ | ||
if (options == null) options = {}; | ||
if (typeof options === 'function') { | ||
callback = options; | ||
options = {}; | ||
} | ||
extend(options, { | ||
@@ -51,2 +56,6 @@ payment_method_token: paymentMethodToken, | ||
if (options == null) options = {}; | ||
if (typeof options === 'function') { | ||
callback = options; | ||
options = {}; | ||
} | ||
extend(options, { | ||
@@ -53,0 +62,0 @@ payment_method_token: paymentMethodToken, |
@@ -14,3 +14,3 @@ (function() { | ||
KNOWN_ATTRIBUTES = ['amount', 'type', 'payment_method_token', 'currency_code', 'descriptor', 'custom', 'customer_reference', 'billing_reference']; | ||
KNOWN_ATTRIBUTES = ['amount', 'type', 'payment_method_token', 'currency_code', 'description', 'custom', 'customer_reference', 'billing_reference']; | ||
@@ -27,2 +27,3 @@ Transaction.find = function(referenceId, callback) { | ||
this.attributes = attributes != null ? attributes : {}; | ||
this.attributes = extend({}, this.attributes); | ||
this.errors = {}; | ||
@@ -29,0 +30,0 @@ this.messages = {}; |
{ "name": "samurai" | ||
, "description": "Samurai payment gateway API client module for Node.js" | ||
, "version": "0.2.3" | ||
, "version": "0.2.4" | ||
, "author": "FeeFighters <samurai@feefighters.com>" | ||
@@ -36,3 +36,5 @@ , "homepage": "https://samurai.feefighters.com" | ||
, "devDependencies": | ||
{ "vows": "0.5.x" } | ||
{ "mocha": "*" | ||
, "should": "*" | ||
} | ||
, "engines" : { "node" : ">=0.4.1" } | ||
@@ -39,0 +41,0 @@ , "keywords": ["payments", "payment gateway", "payment processing", "samurai", "feefighters"] |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
116328
942
2
37