New option to configure BN-Code

Configurable via a wp-config constant, or a new wp-filter.
This commit is contained in:
Philipp Stracker 2024-07-02 16:10:10 +02:00
parent 34245a852b
commit 6efcaa5630
No known key found for this signature in database
7 changed files with 57 additions and 12 deletions

View file

@ -54,7 +54,7 @@ document.addEventListener('DOMContentLoaded', () => {
merchantClientId: PcpPayLaterConfigurator.merchantClientId,
partnerClientId: PcpPayLaterConfigurator.partnerClientId,
partnerName: 'WooCommerce',
bnCode: 'Woo_PPCP',
bnCode: PcpPayLaterConfigurator.bnCode,
placements: ['cart', 'checkout', 'product', 'shop', 'home', 'custom_placement'],
styleOverrides: {
button: publishButtonClassName,