payments.mdx 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. ## Installation
  7. 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.
  8. You can also include plugin via CDN:
  9. ```html
  10. <link rel="stylesheet" href="$TABLER_CDN/dist/css/tabler-payments.min.css">
  11. ```
  12. ## Payment
  13. 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.
  14. ```html example code plugins="payments" separated centered
  15. <span class="payment payment-provider-shopify"></span>
  16. <span class="payment payment-provider-visa"></span>
  17. <span class="payment payment-provider-paypal"></span>
  18. ```
  19. ## Payment sizes
  20. 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.
  21. ```html example code plugins="payments" separated centered
  22. <span class="payment payment-xl payment-provider-shopify"></span>
  23. <span class="payment payment-lg payment-provider-visa"></span>
  24. <span class="payment payment-md payment-provider-paypal"></span>
  25. <span class="payment payment-sm payment-provider-amazon"></span>
  26. <span class="payment payment-xs payment-provider-blik"></span>
  27. ```
  28. ## List of available payment providers
  29. 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.
  30. <PaymentsTable />