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
- Paypal subscription Api in REST APIs
- Selected Shipping Method amount not updating to cart for card payment in SDKs
- ExpressCheckout to REST API - Is Partner Program Now Required to Host Simple 3rd Party Transactions? in REST APIs
- Are there any restrictions to charge using only html, vanilla javascript and php with rest api? in REST APIs
- Disable shipping address in Pay with Credit or Debit card button integration in SDKs