Hi everyone,
I’m looking to implement a wallet system in my Bubble app using PayPal as the payment gateway. Here’s the workflow I have in mind:
- Dropdown Menu for Funding Options
-
Create a dropdown menu with three options for users to fund their wallet: $20, $50 and $100.
-
This dropdown will allow users to select the amount they want to add to their wallet.
- Custom “Fund Wallet” Button
-
Instead of using the default PayPal buttons, I want to create a custom button with the text “Fund Wallet.”
-
This button should trigger the PayPal payment process based on the amount selected in the dropdown menu.
- Charge User Based on Selected Amount
- When the user clicks the “Fund Wallet” button, the app should charge the user the amount they selected in the dropdown menu via PayPal.
- Redirect to Dashboard and Update Wallet Balance
-
After a successful payment, the user should be redirected back to their dashboard.
-
The user’s in-app wallet balance should be incremented by the amount they paid.
-
The updated balance should be displayed clearly on the dashboard.
Has anyone implemented a similar wallet system in Bubble using PayPal? Any tips or plugins you recommend?