Open Vladi-ed opened 1 month ago
There is no Donate SDK implementation in @paypal/paypal-js
I just want to gather donation in my SPA but there is no implementation i can find inside @paypal/paypal-js
Example for how this feature would be used:
import { loadDonationScript } from "@paypal/paypal-js"; let paypal; try { paypal = await loadDonationScript(); } catch (error) { console.error("failed to load the PayPal JS SDK script", error); } if (paypal) { try { await paypal.DonateButton({ env: 'production', hosted_button_id: '123', image: { src: 'assets/donate.png', alt: 'Donate', title: 'Support my work', } } ).render("#your-container-element"); } catch (error) { console.error("failed to render the PayPal Buttons", error); } }
🚀 Feature Proposal
There is no Donate SDK implementation in @paypal/paypal-js
Motivation
I just want to gather donation in my SPA but there is no implementation i can find inside @paypal/paypal-js
Example
Example for how this feature would be used: