Google normally provides an API to customize the button text eg: const button = googlePayClient.createButton({
buttonColor: ‘default’,
buttonType: ‘buy’,
buttonRadius: 4,
onClick: () => {},
allowedPaymentMethods: // use the same payment methods as for the loadPaymentData() API call
});
Does this functionality exist within the square web sdk?
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
No, the Square Web Payments SDK does not provide a specific API to customize the button text like Google Pay does. However, you can customize the overall look and feel of the payment form, including fonts, colors, and backgrounds, to match your application’s branding. The Web Payments SDK provides a customizable UI for a secure, PCI-compliant way of accepting the buyer’s chosen supported payment source.