Add Customization Options for Payment Methods in Payment Request Modal #213
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature that allows customization of the payment methods displayed in the payment request modal.
The bc-send-payment component now accepts a
paymentMethods
property, which can be set toall
(default),internal
, orexternal
internal: Shows only the internal payment methods (connecting a wallet).
external: Displays only the external payment methods (QR code and invoice).
all: Displays both internal payment methods (connecting a wallet) and external payment methods (QR code and invoice).
The layout and spacing of the payment methods have been adjusted to ensure a consistent and visually appealing design, regardless of the selected payment options.
To use this feature, set the
payment-methods
property on thebc-send-payment
component to the desired value:The changes have been added to the
dev/vita
index, so you can see the results by runningyarn dev.
Fix #212