Editor - More payments methods

This is a modal that is opened for configurations of payment methods in a business
and it opens with the function showPaymentsMethodSettings(paymethod) in the view theme/views/editor/payments-methods.html

Main models

  • fields
  • deal.fixed_usage_fee: just for stripe connect and superadmins
    -deal.percentage_usage_fee: just for stripe connect and superadmins

Utility Functions

  • stripeConnect($event): serves to connect directly with stripe
  • updatePaymethod(paymethod): Update a business's payment methods
  • updateAppFee(): it serves to configure the percentages of stripe connect of the business and if it is an administrator.

Example of base theme

580
  1. stripeConnect($event) only for stripe connect
  2. fields section If something changes here, activate the function updatePaymethod(paymethod)
  3. Especial fields for stripe connect if something changes here, activate the function updateAppFee()
  4. deal.fixed_usage_fee
  5. deal.percentage_usage_fee