Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payroll user invitation #55

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Payroll user invitation #55

wants to merge 7 commits into from

Conversation

TChukwuleta
Copy link
Collaborator

Right now, to create a user, you need to input the password of the user.

This PR covers a user-invite flow.

As long as SMTP is configured on server settings, all the admin needs to input is a name and an email and an invite would be sent to the user, which lasts for 7 days.

The user state remains pending till the user confirms registration by setting password

Copy link
Owner

@rockstardev rockstardev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebase this branch on top of the latest master and add a bool EmailInviteForUsers setting to the configuration. Provide customization options for the email subject and body, similar to how it’s done for bool EmailOnInvoicePaid.

If this new setting is enabled, add a toggle during user creation labeled "Send Email Invite to User."

  • If the toggle is enabled:

    • Hide the password fields.
    • Display the Email Subject and Body fields (pre-filled with default values).
    • Trigger the new email invitation flow.
  • If the toggle is disabled, use the existing flow.

Default Email Subject:
You are invited to create a Vendor Pay account

Default Email Body:

Hello {Name},

You are invited to create an account on {StoreName}'s Vendor Pay portal by visiting the following link:  
{VendorPayRegisterLink}

Once your account is created and you log in, you will be able to:
- View your invoices and submit new ones.
- Click 'Upload Invoice' to add a payable invoice. Fill out the information accurately. By using the Vendor Pay portal, you are solely responsible for providing an accurate Bitcoin address and assume all liability for any incorrect or inaccessible address.
- Describe what the payment is related to; be as descriptive as possible to avoid delays.
- Upload the corresponding invoice file.

Payments will be issued in accordance with the terms of the contracted payment and purchase order.

If you have any questions, please reach out to XXXXXX.

Thank you,  
{StoreName}

@rockstardev
Copy link
Owner

@TChukwuleta are you still working on this?

@TChukwuleta
Copy link
Collaborator Author

Yes... I would pick this up later today.

Was trying to figure something on Ghost plugin. WOuld be back here later today

TChukwuleta and others added 5 commits February 5, 2025 02:04
Copying of Nuget dependencies into RockstarStrikeUtils plugin

Displaying payment methods in Strike plugin

Exposing Strike Payment Method Id in settings for Bitcoin Stacker

Automatic setting of Payment Method Id

Hidding api keys in view by default

Small improvements and comments

Automated copying of Stripe dlls

Bumping plugin for publish

Updating Stripe plugin bump

Listing of Exchage Order Logs

Adding Delay functionality and cleaning up bugs

Logging events on ExchangeOrderHeartbeatService

Bumping versions of plugins

Changing where condition, adding logging, bumping plugin version

Executing exchange immediatelly after deposit

Adding Forcing of Conversion

Allowing currency conversion for all orders other than completed

Bump Bitcoin Stacker version

Completed state and bump

Providing option to immediatelly execute heartbeat service

Dealing with little tricks of Strike API

Adding Deposits functionality to Strike plugin

Linking deposit creation from payment methods page

Bumping plugin versions

Adding storeId parameter where it's missing

Tweaks and optimizations

Bump versions

Email Notification for Paid Invoices

Adding PaidAt property to Invoice

Small tweaks and adding VendorPayPublicLink

Unifying variables naming

Depending on Store email settings not on Server email settings

Depending on store email settings

Improving display of invoices list

Bumping plugin version

Checking email settings in backwards compatible way

Bump version

Extracting routes root to controller

Adding configuration of order delay

Providing 365 day fallback as default

Composite key on settings table

Fixing bugs with controller redirections

 Add paid date to Payroll Plugin CSV Reports

handle missing store in mass action route

Code review changes

Resetting back to BTCPay 2.0 tag

Add count of users to header of Vendor Pay Users page

Resetting back to BTCPay 2.0 tag

Bumping Payroll and Bitcoin Stacker plugins

Adding state switch for ExchangeOrders

Bumping Bitcoin Stacker to 0.0.10 for publish and deploy

Preserving BTC and USD balances in database

Updating balance cache when execution is forced

Using FetchSetting method to simplify and maintain references

Refactoring method name for easier access

Bumping Bitcoin Stacker plugin

Fixing error with Setting reference

Using both server and store email settings when sending emails

Allowing manual sending of email notifications

Bump versions

Fixing problem with loading email settings

Reformatting code per Rider settings

Updating README on BitcoinStacker

Payroll user invitation

Update user invitation flow with feedback

Payroll user invitation
@TChukwuleta
Copy link
Collaborator Author

Hello @rockstardev I have rebased and squashed commits.

I have also made the requested changes, could you give it another try?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants