UNPKG

payments

Version:

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

26 lines (19 loc) 711 B
import { simpleFormValuesToMerchant, simpleMerchantToFormValues } from '../adapters'; export default { id : 'com.mercadopago', form : [ {type : 'string', name : 'clientId'}, {type : 'string', name : 'clientSecret'}, {type : 'country', name : 'countryCode'} ], // @see https://www.about-payments.com/knowledge-base/method/mercadopago#countries countries : [ 'AR', 'BR', 'CL', 'CO', 'MX', 'VE' ], fields: ['holderName', 'holderId', 'csc'], formValuesToMerchant : simpleFormValuesToMerchant, merchantToFormValues : simpleMerchantToFormValues, keyToMerchant : JSON.parse, merchantToKey : JSON.stringify, ranking: 4 };