SamsungInternet / globalgoals

MIT License
0 stars 0 forks source link

Create Donate (amount) Card and connect to GG Direct Donation #31

Open lauramorinigo opened 4 years ago

lauramorinigo commented 4 years ago

Provide the ability to the user to donate a certain x amount using the Donate Card under the donations tab:

lolaodelola commented 4 years ago

Branch: https://github.com/SamsungInternet/globalgoals/tree/feature_donations

Blocked:

lauramorinigo commented 4 years ago

Current research about how to implement donations/payment method, things to solve:

  1. How to implement GDPR if data is collected, see options to not collect any data or rely on the native app
  2. How to use Stripe (include outside the US)
  3. Implementation of Web Payment API
  4. How to add Samsung Pay Web
lolaodelola commented 4 years ago

Stripe client side integration w/ WebPaymentsAPI:

client_side_stripe

lauramorinigo commented 4 years ago

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

lauramorinigo commented 3 years ago

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

lauramorinigo commented 3 years ago

If the user doesn't have any card attached show a message telling that it should attach a card to the browser. @lolaodelola

lolaodelola commented 3 years ago

@lauramorinigo that's done & pushed up now