/** * External dependencies */ import { Path, Rect, SVG, G } from '@wordpress/components'; /** * Internal dependencies */ import { __, _x } from '@wordpress/i18n'; import edit from './edit'; import './editor.scss'; export const name = 'membership-button'; export const icon = ( ); export const settings = { title: __( 'Membership Button', 'jetpack' ), icon, description: __( 'Button allowing you to sell subscription products.', 'jetpack' ), category: 'jetpack', keywords: [ _x( 'sell', 'block search term', 'jetpack' ), _x( 'subscription', 'block search term', 'jetpack' ), 'stripe', ], attributes: { planId: { type: 'integer', }, submitButtonText: { type: 'string', }, customBackgroundButtonColor: { type: 'string', }, customTextButtonColor: { type: 'string', }, }, edit, save: () => null, }; // These are Stripe Settlement currencies https://stripe.com/docs/currencies since memberships supports only Stripe ATM. export const SUPPORTED_CURRENCY_LIST = [ 'USD', 'AUD', 'BRL', 'CAD', 'CHF', 'DKK', 'EUR', 'GBP', 'HKD', 'JPY', 'MXN', 'NOK', 'NZD', 'SEK', 'SGD', ];