<script>
var config = {
selector: 'hipay-hostedpayments-form',
card: {
multi_use: false,
fields: {
cardHolder: {
defaultValue: 'John Doe'
}
}
},
sdd: {
fields: {
firstname: {
defaultValue: 'John'
},
lastname: {
defaultValue: 'Doe'
}
}
},
styles: {
base: { // default field styling
color: "#000000",
fontSize: "15px",
fontWeight: 400,
placeholderColor: "#999999",
iconColor: 'green',
caretColor: "green"
},
invalid: { // invalid field styling
color: '#D50000',
caretColor: '#D50000'
}
}
};
var hostedPaymentsInstance = hipay.create('hosted-payments', config);
</script>