<div id="app" class="container">
	<apicart-payment-methods-list @payment-method-updated="paymentMethodUpdated"></apicart-payment-methods-list>
</div>

<script src="https://cdn.jsdelivr.net/npm/@apicart/vue-components@1.0.0-alpha7/dist/bundles/skeleton/skeleton.full.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@apicart/vue-components@1.0.0-alpha7/dist/components/loader/loader.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@apicart/vue-components@1.0.0-alpha7/dist/components/payment-methods-list/payment-methods-list.js"></script>
<script>
	Apicart
		.setDevEnv()
		.configure({
			store: new Apicart.Store({ token: '9mCu3DlBCa4REI?Q7kKly!Rw6!_FvD8K_dgPXe1b20?r6!sPTQMyCpq_ADt!jXOD' }),
      vueComponents: {
        paymentMethodsList: {
          allowedMethods: ['cash', 'bank-transfer'] // Allow only methods with this UID (you can set them in the administration)
        }
      }
		});

	new Vue({
		el: '#app',
		components: {
			ApicartPaymentMethodsList
		},
		methods: {
			paymentMethodUpdated(paymentMethod) {
				alert(paymentMethod.getName());
			}
		}
	});
</script>

<style>
	* {
		font-family: -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
		box-sizing: border-box;
	}

	.apicart-payment-methods {
		max-width: 320px;
	}

</style>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.