Merge branch 'trunk' into PCP-915-create-pay-later-tab

# Conflicts:
#	modules/ppcp-wc-gateway/services.php
This commit is contained in:
Narek Zakarian 2022-10-31 16:07:17 +04:00
commit 3e82fd9996
17 changed files with 766 additions and 69 deletions

View file

@ -516,13 +516,22 @@ class SmartButton implements SmartButtonInterface {
$load_script = true;
}
if ( in_array( $this->context(), array( 'pay-now', 'checkout' ), true ) && $this->can_render_dcc() ) {
if ( in_array( $this->context(), array( 'pay-now', 'checkout' ), true ) ) {
wp_enqueue_style(
'ppcp-hosted-fields',
untrailingslashit( $this->module_url ) . '/assets/css/hosted-fields.css',
'gateway',
untrailingslashit( $this->module_url ) . '/assets/css/gateway.css',
array(),
$this->version
);
if ( $this->can_render_dcc() ) {
wp_enqueue_style(
'ppcp-hosted-fields',
untrailingslashit( $this->module_url ) . '/assets/css/hosted-fields.css',
array(),
$this->version
);
}
}
if ( $load_script ) {
wp_enqueue_script(