d11n
f0e013e1f8
Make Pay Button a plugin ( #3862 )
...
* Move files
* Fix potentially missing default payment method
Before, it got removed if any other value was changed besides the default payment method.
* Fix missing store data
* Update BTCPayServer/Plugins/PayButton/PayButtonPlugin.cs
Co-authored-by: Pavlenex <pavle@pavle.org>
* Update pay button warning
Closes #3535 .
Co-authored-by: Pavlenex <pavle@pavle.org>
2022-06-15 11:32:46 +09:00
Umar Bolatov
8feb60c30d
Add ability to set default payment method for pay button ( #3606 )
...
* Add ability to set default payment method for pay button
close #3604
* Add "#nullable enable" to UIStoresController
* Add PaymentMethodOptionViewModel
* Add explicit "Use the store’s default" option
2022-04-11 17:48:12 +09:00
d11n
4125726be9
Fix pay button type comparison ( #3403 )
...
Fixes #3396 . We need to compare the button type value loosely, because initially the type is an integer and after it gets set by Vue it is a string.
2022-02-02 12:37:56 +09:00
Nicolas Dorier
28dbf10a31
Do not rely on element's id for payment button ( #3339 )
...
* Do not rely on element's id for payment button
* Update BTCPayServer/Views/UIStores/PayButton.cshtml
Co-authored-by: d11n <mail@dennisreimann.de>
* Update BTCPayServer/Views/UIStores/PayButton.cshtml
Co-authored-by: d11n <mail@dennisreimann.de>
* Update BTCPayServer/Views/UIStores/PayButton.cshtml
Co-authored-by: d11n <mail@dennisreimann.de>
* Update BTCPayServer/Views/UIStores/PayButton.cshtml
Co-authored-by: d11n <mail@dennisreimann.de>
Co-authored-by: d11n <mail@dennisreimann.de>
2022-01-24 20:05:22 +09:00
d11n
54a735ffd9
Pay Button: Fix CSP violations for custom amount and slider ( #3334 )
...
Fixes #3241 .
2022-01-21 11:11:08 +09:00
d11n
e113c12768
Fix copy pay button code ( #3175 )
2021-12-04 21:12:15 +01:00
dstrukt
4cd18a1b28
Improve Pay Button View ( #3112 )
...
Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2021-11-18 09:58:29 +01:00
Umar Bolatov
ac34109da3
Support preview/codegen for custom currencies in pay button ( #2896 )
2021-09-22 13:10:52 +09:00
d11n
aac87539ae
Fix pay button CSP issue when using modal ( #2872 )
...
* Fix pay button CSP issue when using modal
Fixes #2864 .
* Use event handler, refactor csp tags
* Fix script indentation
* Fix onsubmit event handler integration
Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
2021-09-12 20:31:35 +09:00
nicolas.dorier
a20906bc12
Fix paybutton like when no amount set
2021-08-12 10:04:23 +09:00
Nicolas Dorier
4c818d0359
Implement topup invoices ( #2730 )
2021-08-03 17:03:00 +09:00
Kukks
38942aef25
remove log
2021-05-05 12:19:35 +02:00
Kukks
200e8330d8
Fix Pay Button steps and range validation
...
There were numerous issues around different button types and the amount range validation. Also fixes #2503
2021-05-05 11:27:02 +02:00
Patrick
b4e15cb27f
Fix Pay-Button url preview ( #2397 )
...
* Fix #2396
Adresses #2396 by creating a new element and setting the url as text rather as html.
* Fix closing tag
2021-03-26 16:37:15 +09:00
Umar Bolatov
21467ef65d
Add "vertical-align: middle;" to pay button image CSS ( #2312 )
...
closes #2311
2021-02-24 22:01:05 +09:00
Kukks
7b9b418e93
FIx Pay Button Link preview when app mode chosen
...
Apps cannot have a link as they only have a POST action.
2020-12-08 09:49:51 +01:00
Andrew Camilleri
fac35b46bb
Display link for Pay button ( #2017 )
...
fixes #635
2020-10-24 23:52:39 +09:00
Dennis Reimann
ff99ab1239
Improve pay button with custom text ( #1520 )
...
Fixes #1517 .
2020-04-29 00:52:48 +09:00
Kukks
36bd76248b
Allow Pay Button to work on Apps
...
This PR allows you to use the pay button generator to create buttons that target apps. This means that you can generate an invoice that is linked to an item on the POS/Crowdfund (targeting the item is optional). The POS/Crowdfund item amount -> invoice creation amount validation works too so that the user cannot modify the amount of a perk using just html ( fixes #1392 )
2020-03-24 23:43:47 -05:00
Kukks
c3bfce7656
Modal option for Pay Button
...
closes #796
2020-02-28 16:01:44 +01:00
Andrew Camilleri
1d61db4758
Add text customization for pay button ( #1346 )
...
* Add text customization for pay button
https://i.imgur.com/nFxscOZ.gifv
* pr changes
2020-02-24 21:29:29 +09:00
Dennis Reimann
7eae1f3b3c
More pay button improvements
2019-10-31 11:31:30 +01:00
Dennis Reimann
3b1f851f8a
Improve pay button display
...
These changes should provide a more solid CSS approach to display the pay button in different scenarios. Also it fixes minor functionality issues like preselecting the merchant-chosen currency in the custom amount and slider dropdown.
2019-10-29 21:08:08 +01:00
Andrew Camilleri
89a7166c1b
More options to Custom Amount Pay button ( #948 )
...
* Start adding more options to Custom Amount Pay button
This allows you to simplify the custom amount pay button to remove the big + & - buttons along with set a min, max and step amounts. There's also an option to fit the button next to the input amount to have it more condensed(not finished)
* make fit button inline work nicely
* make currency dropdown more obvious
* fix space
2019-07-31 22:58:04 +09:00
Nicolas Dorier
9e354d7703
Merge pull request #891 from Kukks/pay-button-language
...
Allow language parameter in pay button endpoint
2019-06-26 13:27:52 +09:00
Kukks
11670d0c0f
make checkout param more generic and add it to pay button generator
2019-06-25 21:01:37 +02:00
nicolas.dorier
f570de5086
Fix payment button alignement
2019-06-23 14:31:56 +09:00
Ludovic
7e0211924d
Replace inline js by templates in pay button
2019-04-06 15:02:02 +02:00
Ludovic
bc97c07670
Add currency select in Pay Button
2019-04-04 21:32:16 +02:00
Ludovic
449066449b
Add a new Pay Button Type : Slider
2019-04-04 20:56:12 +02:00
Ludovic
184c797b0e
Add a new Pay Button Type : Custom amount
2019-04-03 21:43:53 +02:00
nicolas.dorier
0d3364b3da
Change button path to api/v1/invoices
2018-09-08 14:53:42 +09:00
rockstardev
0abd62dfe8
Moving PayButton handler to public controller
2018-09-08 14:53:41 +09:00
nicolas.dorier
013dfa1b61
Properly escape attributes, make the preview an actual form rather than an image
2018-08-23 11:55:29 +09:00
rockstardev
2b6faa8d20
Migrating generator to work on store path
2018-08-22 14:05:12 +02:00
rockstardev
4111b8a5a3
Maintaining AppId reference
2018-08-22 12:59:55 +02:00
rockstardev
5b5a2e8c25
Reorganizing Javascript code and references
2018-08-22 11:10:46 +02:00