How to Data attribute to paypal button (javascript sdk ), something like qa-id to help with testing.

ybothegreat
Contributor
Contributor

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. 

 

Login to Me Too
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.