diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-09-25 17:04:08 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-09-25 17:04:08 -0400 |
| commit | ef381ff7d329c7d6c2c85a8374be371581849e67 (patch) | |
| tree | 8b8d8118cbdf43d7b8ca9fe7a1b7115197e07c8d /StoneIsland/www/js/sdk/payment.js | |
| parent | 875ae780b4bd959abd8f01a8e8b1d3e2bedb29d6 (diff) | |
more cart stuff
Diffstat (limited to 'StoneIsland/www/js/sdk/payment.js')
| -rw-r--r-- | StoneIsland/www/js/sdk/payment.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/StoneIsland/www/js/sdk/payment.js b/StoneIsland/www/js/sdk/payment.js index 28fbb508..048cde4b 100644 --- a/StoneIsland/www/js/sdk/payment.js +++ b/StoneIsland/www/js/sdk/payment.js @@ -51,5 +51,22 @@ sdk.payment = (function(){ }) } + payment.get_payment_types = function(opt){ + $.ajax({ + method: "GET", + url: sdk.path("Cart.API/1.6", "availablePaymentTypes.json"), + headers: { + "x-yoox-appname": auth.appname, + "x-yoox-device": auth.device, + }, + data: opt.data, + success: function(data){ + console.log(data) + opt.success(data) + }, + error: opt.error, + }) + } + return payment })()
\ No newline at end of file |
