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

Add Customization Options for Payment Methods in Payment Request Modal #213

Closed
wants to merge 3 commits into from

Conversation

positiveblue
Copy link
Contributor

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 to all (default), internal, or external

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 the bc-send-payment component to the desired value:

<bc-send-payment paymentMethods="all|internal|external"></bc-send-payment>

The changes have been added to the dev/vita index, so you can see the results by running yarn dev.

Fix #212

Break the component structure in multipe composable parts.
The new property can have three values: all, internal or external.

Internal payment methods refer to "connect" buttons.
External payment methods refer to "show QR/Copy Invoice"
All payment methods refer to show Internal and External options.

For mobile, the "Open in a Bitcoin Wallet" is always available.
@stackingsaunter stackingsaunter requested a review from rolznz April 30, 2024 19:15
@rolznz rolznz mentioned this pull request May 1, 2024
1 task
@rolznz
Copy link
Collaborator

rolznz commented May 1, 2024

Hi @positiveblue , thanks for your PR!

I was unable to edit your branch so I have made some improvements here: #214

@rolznz rolznz closed this May 1, 2024
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.

Remove external payment options from payment request modal
2 participants