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

Enable native payments #447

Merged
merged 9 commits into from
Jan 15, 2024
Merged

Conversation

prachigarg19
Copy link
Collaborator

@prachigarg19 prachigarg19 commented Nov 9, 2023

  1. Enables native payments using env variables ENABLE_GOOGLE_PAY & ENABLE_APPLE_PAY
  2. Resolves repeated trigger of onPaymentFunction while making payments using Google / Apple Pay
  3. Resolves issue with incorrect initial value seen in Google/Apple Pay dialog when moving between projects

Pending

  • Remove console logs of payment request
  • Set up env vars for production server

Copy link

vercel bot commented Nov 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
donate-with-planet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 15, 2024 4:20am

@prachigarg19 prachigarg19 marked this pull request as draft November 9, 2023 11:45
@norbertschuler
Copy link
Collaborator

norbertschuler commented Dec 29, 2023

  • Google Pay seems to work on Chrome on MacOS
  • Apple Pay seems to work on Safari on MacOS
  • Google Pay on a mobile device was not tested yet by me
  • Apple Pay seems to work on Safari on iPhone/iOS
  • Apple Pay seems to work on an iPhone with Chrome browser!

- `paymentRequest` initialized on initial render of `PaymentRequestCustomButton`
@mohitb35 mohitb35 marked this pull request as ready for review January 9, 2024 02:16
Copy link
Collaborator

@norbertschuler norbertschuler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the code changes are fine. I just could not test Apple Pay (compare Slack) :-(

- redirect prevented if env.DISABLE_VERCEL_REDIRECT is true
- requires explicit enabling of native payments
Copy link
Contributor

@mariahosfeld mariahosfeld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apple Pay is now visible to me on mobile, have not yet tested complete functionality.

@mariahosfeld mariahosfeld merged commit 67b1d1b into develop Jan 15, 2024
6 checks passed
@mariahosfeld mariahosfeld deleted the feature/enable-native-payments branch January 15, 2024 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants