UNPKG

payments

Version:

Lists various payment methods. Used by Wix Restaurants for payment configuration.

31 lines (20 loc) 1.22 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _stringify = require('babel-runtime/core-js/json/stringify'); var _stringify2 = _interopRequireDefault(_stringify); var _adapters = require('../adapters'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = { id: 'com.braintreegateway', form: [{ type: 'string', name: 'merchantId' }, { type: 'string', name: 'publicKey' }, { type: 'string', name: 'privateKey' }, { type: 'currency', name: 'currency' }, { type: 'string', name: 'merchantAccountId' }], // @see https://www.braintreepayments.com/country-selection countries: ['AD', 'AT', 'AU', 'BE', 'BG', 'CA', 'CH', 'CY', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GB', 'GG', 'GI', 'GR', 'HK', 'HR', 'HU', 'IE', 'IM', 'IS', 'IT', 'JE', 'LI', 'LT', 'LU', 'LV', 'MC', 'MT', 'MY', 'NL', 'NO', 'NZ', 'PL', 'PT', 'RO', 'SE', 'SG', 'SI', 'SK', 'SM', 'TR', 'US'], fields: [], formValuesToMerchant: _adapters.braintreeFormValuesToMerchant, merchantToFormValues: _adapters.braintreeMerchantToFormValues, keyToMerchant: JSON.parse, merchantToKey: _stringify2.default, ranking: 4 };