Paypal-checkout-components: [Feature] Add support for Svelte

Created on 23 Jan 2021  路  4Comments  路  Source: paypal/paypal-checkout-components

馃殌 Feature Proposal

Please add support for the Svelte framework https://svelte.dev/

Motivation

Svelte is becoming increasingly more popular and many people use it. Currently there is no good solution to implement the smart checkout buttons into a Svelte SPA. It needs the support like you have for react, vue and angular.

Example

Probably something similar like the other implementations for SPA's. The only difference is that svelte is a compile time framework so it might need a sligthly different implementation than the current ones

Stale

Most helpful comment

Hi @Warix3! Adding support for Svelte seems like a good idea. It will take a little while to get it added since Svelte is a compile time framework, as you mentioned, so it works a little differently from things like React that we already support.

The good news is there is another pretty nice way to add PayPal Smart Payment Buttons to a Svelte app using paypal-js until we add official driver support. You can see an example of this in this PayPal integration example with Svelte

All 4 comments

Hi @Warix3! Adding support for Svelte seems like a good idea. It will take a little while to get it added since Svelte is a compile time framework, as you mentioned, so it works a little differently from things like React that we already support.

The good news is there is another pretty nice way to add PayPal Smart Payment Buttons to a Svelte app using paypal-js until we add official driver support. You can see an example of this in this PayPal integration example with Svelte

@amyegan Thanks for the info, I was actually looking for something like paypal-js but couldn't find so I used some hacky solution before, this is much better.

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Soulpancake000 picture Soulpancake000  路  5Comments

mtshare picture mtshare  路  5Comments

JDevjs picture JDevjs  路  6Comments

brettchalupa picture brettchalupa  路  6Comments

MrMooky picture MrMooky  路  3Comments