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

Add device data collection #115

Closed
5 of 6 tasks
gsmendoza opened this issue Mar 2, 2023 · 0 comments · Fixed by #116
Closed
5 of 6 tasks

Add device data collection #115

gsmendoza opened this issue Mar 2, 2023 · 0 comments · Fixed by #116
Assignees

Comments

@gsmendoza
Copy link
Contributor

gsmendoza commented Mar 2, 2023

Goal

We want to add device data collection because PayPal recommends that all customer-initiated transactions include device data. Device data increases the accuracy of their available Premium Fraud Management Tools in determining when a transaction is fraudulent. See https://developer.paypal.com/braintree/docs/guides/premium-fraud-management-tools/device-data-collection.

Background

@SyborgStudios contributed the initial PR. See #103.

Tasks

  • Remove IS_FRONTEND since we now have separate hosted_form.js files for frontend and backend.
  • Always use data collector in frontend HostedForm.
  • Check if client and data-collector JS files are being included:
    • <script src="https://js.braintreegateway.com/web/3.91.0/js/client.min.js"></script>
    • <script src="https://js.braintreegateway.com/web/3.91.0/js/data-collector.min.js"></script>
    • Test if PayPal checkout is successful.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant