How to Data attribute to paypal button (javascript sdk ), something like qa-id to help with testing.
ybothegreat
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Aug-15-2022
03:18 PM
We are using the paypal sdk to render buttons on the page. https://developer.paypal.com/sdk/js/reference/
We also wanted to add "Data" attribute to the paypal button that is being rendered by that iframe , something simple like a "qa-id"="paypal-button-click" so we can use this for testing.
Labels:
- Labels:
-
PayPal HTML Buttons
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Change the button from Sandbox to Production in REST APIs
- Issue with Rendering Trustly Payment Button via PayPal JavaScript SDK in SDKs
- Enable Pay later without credit in SDKs
- When I do PayPal capture Order, I keep on getting Invalid Request Connection in REST APIs
- Error: "Unable to change shipping method. Please try again." in PayPal popup in REST APIs