Open lauramorinigo opened 4 years ago
Branch: https://github.com/SamsungInternet/globalgoals/tree/feature_donations
Blocked:
loadDirectDonation
from card component, i.e. can't pass function to cActions
Current research about how to implement donations/payment method, things to solve:
Stripe client side integration w/ WebPaymentsAPI:
The donation by earnings workflow will be solved in a separate issue, check #40
Direct Donation with Stripe:
The web workflow is a little bit different than the native one, the web component shows directly the cards available without the option to choose between for example SPay and Gpay. Chrome On desktop, it doesn't retrieve the cards already connected with Gpay, on mobile yes. Samsung Internet The web component doesn't appear if there are no cards connected to the browser.
To Do
We were able to integrate Stripe to donate but it's not working with Samsung Internet, it seems like it's not recognizing the Stripe payment method (the same thing was happening with Firefox Mobile). After chatting with Stripe Support they told us that the browser is not supported but we had a case test example from other team members a few years ago. Looking for alternatives and feedback in order to make this feature available for SI. A new issue was created to follow up this #44
If the user doesn't have any card attached show a message telling that it should attach a card to the browser. @lolaodelola
@lauramorinigo that's done & pushed up now
Provide the ability to the user to donate a certain x amount using the Donate Card under the donations tab: