payments.mdx 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ---
  2. title: Payments
  3. description: The Tabler payments plug-in will let you use a set of payment provider icons to facilitate the payment process and make it more-user friendly.
  4. plugin: payments
  5. ---
  6. import config from '../config.json'
  7. ## Installation
  8. This part of Tabler is distributed as plugin. To enable it you should include `tabler-payments.css` or `tabler-payments.min.css` file to your page.
  9. You can also include plugin via CDN:
  10. ```html
  11. <link rel="stylesheet" href="$TABLER_CDN/dist/css/tabler-payments.min.css">
  12. ```
  13. ## Payment
  14. To create a payment provider icon, add the `payment` class to a component and specify the payment provider. The full list of payment providers can be found below.
  15. ```html example code plugins="payments" separated centered
  16. <span class="payment payment-provider-shopify"></span>
  17. <span class="payment payment-provider-visa"></span>
  18. <span class="payment payment-provider-paypal"></span>
  19. ```
  20. ## Payment sizes
  21. Using Bootstrap’s typical naming structure, you can create a standard payment, or scale it up or down to different sizes based on what’s needed.
  22. ```html example code plugins="payments" separated centered
  23. <span class="payment payment-xl payment-provider-shopify"></span>
  24. <span class="payment payment-lg payment-provider-visa"></span>
  25. <span class="payment payment-md payment-provider-paypal"></span>
  26. <span class="payment payment-sm payment-provider-amazon"></span>
  27. <span class="payment payment-xs payment-provider-blik"></span>
  28. ```
  29. ## List of available payment providers
  30. Select an icon from the list of payment providers. Each icon comes in two color variants - light and dark, so you can choose the one that goes well with your design.
  31. <PaymentsTable payments={config.payments} />