globalpayments / globalpayments-3ds-js

Helper library for leveraging 3DSecure 2 for Strong Customer Authentication (SCA)
https://www.npmjs.com/package/globalpayments-3ds
GNU General Public License v2.0
5 stars 10 forks source link

Use of camel case for returned data instead of underscores #9

Open csdougliss opened 4 years ago

csdougliss commented 4 years ago

My application outputs variables like:

data.server_transaction_id

But the JS is expecting:

data.serverTransactionId

Is there anyway for the JS to handle this without me rewriting those parts?

slogsdon commented 4 years ago

Apologies for the delay. Nothing like this exists yet, but we are looking into potentially adding some helpers to assist here, either in the server-side SDKs or in this library.