diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-30 23:19:28 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-30 23:19:28 -0500 |
| commit | f6e7c07078252d72b0c7725350a83adfff740b99 (patch) | |
| tree | 41980a23e5e76b4bbdfcee5d039845635003e0df /StoneIsland/platforms/ios/www/js/sdk/cart.js | |
| parent | 83a884197ff0226631a46e4894f22b8468b15598 (diff) | |
plugins
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/sdk/cart.js')
| -rw-r--r-- | StoneIsland/platforms/ios/www/js/sdk/cart.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/StoneIsland/platforms/ios/www/js/sdk/cart.js b/StoneIsland/platforms/ios/www/js/sdk/cart.js index a5e85089..3ff2e1d2 100644 --- a/StoneIsland/platforms/ios/www/js/sdk/cart.js +++ b/StoneIsland/platforms/ios/www/js/sdk/cart.js @@ -140,6 +140,22 @@ sdk.cart = (function(){ }) } + cart.get_card_types = function(opt){ + return $.ajax({ + method: "GET", + url: sdk.path("Cart.API/1.6", "cardTypes.json"), + headers: { + "x-yoox-appname": auth.appname, + "x-yoox-cart-token": cart.token, + }, + data: "", + success: function(data){ + opt.success(data) + }, + error: opt.error, + }) + } + // use with full CC data if not storing it in wallet cart.set_credit_card = function(opt){ return $.ajax({ |
