creditCard.getPaymentElement({
hostedForm: {
panInputLabel: "Card number",
panPlaceholder: "1234 5678 9012 3456",
cvvInputLabel: "Security code",
cvvPlaceholder: "123",
expirationInputLabel: "Expiration date",
expirationPlaceholder: "MM/YY",
holderInputLabel: "Cardholder name",
holderPlaceholder: "John Doe"
},
theme: {
global: {
color: '#1f2933',
fontFamily: 'Arial, sans-serif',
fontSize: '16px',
gap: '8px'
},
input: {
padding: '12px',
borderRadius: '4px',
border: '1px solid #cbd5e0',
backgroundColor: '#ffffff',
':focus': {
borderColor: '#4299e1',
boxShadow: '0 0 0 3px rgba(66, 153, 225, 0.1)'
},
':invalid': {
borderColor: '#dc2626'
}
},
label: {
fontWeight: '500',
margin: '0 0 4px 0',
color: '#374151'
},
helperText: {
fontSize: '14px',
color: '#6b7280',
margin: '4px 0 0 0'
}
}
}).appendTo("purse-hosted-form");