mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Add module path to load the card icons
This commit is contained in:
parent
b5f4e03f2a
commit
2bcdd77ba6
2 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,7 @@ class CardView {
|
||||||
<img
|
<img
|
||||||
class="ppcp-card-icon"
|
class="ppcp-card-icon"
|
||||||
title="${data.value('brand')}"
|
title="${data.value('brand')}"
|
||||||
src="/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/assets/images/axo/${cardIcons[data.value('brand')]}"
|
src="${window.wc_ppcp_axo.module_url}/assets/images/axo/${cardIcons[data.value('brand')]}"
|
||||||
alt="${data.value('brand')}"
|
alt="${data.value('brand')}"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -197,6 +197,7 @@ class AxoManager {
|
||||||
'CA' => WC()->countries->get_states( 'CA' ),
|
'CA' => WC()->countries->get_states( 'CA' ),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
'module_url' => untrailingslashit( $this->module_url ),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue