Hi!
I’m trying to better understand how I can style the dwolla-cards.js form. In particular my form fields are entirely un-styled like the sample in the docs, even though I applied the same style options object.
I expected something like this:
But I get this:
My code is:
<//template>
</div class=“container-fluid” id=“app”>
</div class=“dwolla-form-container row”>
</div class=“action”>
</div style=“padding-bottom: 25px”>
</div id=“cardContainer”>
<//div>
<//div>
<//div>
<//div>
<//template>
<script>
const options = {
stylesheets: ["styles.css"],
styles: {
// most CSS properties can be supplied to these objects
default: {
// placeholder text
fontWeight: "normal",
},
success: {
// valid input text
color: "#1176BC",
fontWeight: "bold",
},
error: {
// invalid input text
color: "#d9534f",
// fontFamily: fontFamily,
// fontSize: fontSize,
fontWeight: "bold",
},
buttonText: "Submit",
},
};
export default {
methods: {
getDwollaCardEntryToken(requestHeader) {
let that = this;
axios
.get(
"http://localhost:8080/api/profiles/get_dwolla_card_entry_token",
requestHeader
)
.then(function(response) {
let dwollaToken = response.data;
that.launchDwollaDebitCardEntry(dwollaToken);
})
},
launchDwollaDebitCardEntry(token) {
console.log("Reached launchDwolla. Token: " + token);
dwolla.configure("sandbox");
dwolla.cards.start(
"cardContainer",
token,
options
)((err, res) => {
document.getElementById("cardContainer").style.display = "none";
document.getElementById("result").style.display = "block";
});
},
},
};
</script>
<style>
.dwolla-form-container {
height: 75vh;
justify-content: center;
align-items: start;
}
</style>
(note: I had to add “//” to my template fields so the forum’s web code would actually display that text and not think I’m trying to format the response. lol)
Can anyone provide some sample code on how to correctly style the dwolla-card.js form like the example?


