Change labels in Copy and Pay Widget

Follow

You can change the labels of the various elements in the Copy and Pay widget.


You should be able to do this with the Copy and Pay API:

We have a label function that will let you swap the labels for the various elements. The complete list of available labels is here:

https://peachpayments.docs.oppwa.com/tutorials/integration-guide/widget-api#labels

You can include the following code snippet above the <form> tag where you are embedding the widget:

<script type="text/javascript">
var wpwlOptions = {
labels: {cardHolder: "Name on card", cvv: "Security code", submit: "Register"},
brandDetection: "true"
}
</script>

Have more questions? Submit a request

Comments

Powered by Zendesk