Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Venmo overlay #2271

Merged
merged 7 commits into from
Nov 7, 2023
Merged

Venmo overlay #2271

merged 7 commits into from
Nov 7, 2023

Conversation

nbierdeman
Copy link
Contributor

@nbierdeman nbierdeman commented Nov 3, 2023

Description

This PR adds a Venmo overlay component as requested in DTPPCPSDK-1254. It will be used for all Venmo button clicks, including Venmo Web use cases. The goal was to mimic the look and behavior of the BT SDK Venmo overlay in the PP SDK.

It was decided by Product that we should hard code English for now (English is currently the only language supported by Venmo), and that we should completely separate styles despite there being some duplication with the PayPal overlay.

Screenshots

Here's a video demonstrating switching between the PayPal and Venmo overlays, including still displaying English in the Venmo overlay after setting the browser language (i.e. navigator.language) to Spanish:

Screen.Recording.2023-11-03.at.12.42.16.PM.mov

Dependent Changes

paypal/paypal-common-components#84 needs to be merged and published first.

@nbierdeman nbierdeman requested review from jshawl and nikrom17 November 6, 2023 16:44
@nbierdeman nbierdeman marked this pull request as ready for review November 6, 2023 16:45
@nbierdeman nbierdeman requested a review from a team as a code owner November 6, 2023 16:45
Copy link

codecov bot commented Nov 7, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (6caee02) 51.01% compared to head (f63fe34) 51.18%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2271      +/-   ##
==========================================
+ Coverage   51.01%   51.18%   +0.16%     
==========================================
  Files         104      104              
  Lines        2025     2032       +7     
  Branches      599      601       +2     
==========================================
+ Hits         1033     1040       +7     
  Misses        889      889              
  Partials      103      103              
Flag Coverage Δ
jest 31.99% <ø> (ø)
karma 49.87% <83.33%> (+0.21%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/zoid/checkout/component.jsx 90.00% <100.00%> (+1.53%) ⬆️
src/zoid/content.js 100.00% <100.00%> (ø)
src/zoid/venmo/component.jsx 19.23% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nbierdeman nbierdeman merged commit 294709b into main Nov 7, 2023
3 checks passed
@nbierdeman nbierdeman deleted the venmo-overlay branch November 7, 2023 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants