Skip to content

Conversation

@lissavxo
Copy link
Collaborator

Related to #425

Description

Added a new prop called contributionOffset.

Test plan

Create a paybutton or widget and add prop goalAmount and contributionOffset, it should work as described here
Also test without the prop to make sure it works without it.

Copy link
Member

@Klakurka Klakurka left a comment

Choose a reason for hiding this comment

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

  • Readme needs updating as you said.
  • Can you add this into paybutton-generator.html ?


<div class="paybutton" to="ecash:qrmm7edwuj4jf7tnvygjyztyy0a0qxvl7quss2vxek" goal-amount="2500.05" currency="USD"
text="Donate (other dev)" on-success="mySuccessFunction" on-transaction="myTransactionFunction"></div>
text="Donate (other dev)" on-success="mySuccessFunction" on-transaction="myTransactionFunction" enable-altpayment="false"></div>
Copy link
Member

Choose a reason for hiding this comment

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

Can you rebase to the branch hat hasn't been merged yet?

We should have at least 1 contributionOffset example here.

@lissavxo lissavxo force-pushed the feat/contribution-offset-prop branch from 94ac9cc to 904fb14 Compare November 13, 2024 15:15
@lissavxo lissavxo requested a review from Klakurka November 13, 2024 18:20
Copy link
Collaborator

@chedieck chedieck left a comment

Choose a reason for hiding this comment

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

looks good, though it also works for negative numbers (don't know if this is should be expected, but I think it's okay so I am approving)

@Klakurka Klakurka merged commit fc2271e into master Nov 14, 2024
1 check passed
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.

4 participants