mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge branch 'task/shared-apple-google' into PCP-1744-google-pay-integration
# Conflicts: # modules/ppcp-blocks/resources/js/checkout-block.js # modules/ppcp-button/src/Endpoint/CartScriptParamsEndpoint.php
This commit is contained in:
commit
aa962e832c
2 changed files with 9 additions and 4 deletions
|
@ -81,10 +81,10 @@ class CartScriptParamsEndpoint implements EndpointInterface {
|
|||
|
||||
wp_send_json_success(
|
||||
array(
|
||||
'url_params' => $script_data['url_params'],
|
||||
'button' => $script_data['button'],
|
||||
'messages' => $script_data['messages'],
|
||||
'amount' => WC()->cart->get_total( 'raw' ),
|
||||
'url_params' => $script_data['url_params'],
|
||||
'button' => $script_data['button'],
|
||||
'messages' => $script_data['messages'],
|
||||
'amount' => WC()->cart->get_total( 'raw' ),
|
||||
|
||||
'total' => $total,
|
||||
'total_str' => ( new Money( $total, $currency_code ) )->value_str(),
|
||||
|
|
|
@ -425,6 +425,11 @@ class SettingsListener {
|
|||
$this->dcc_status_cache->delete( DCCProductStatus::DCC_STATUS_CACHE_KEY );
|
||||
}
|
||||
|
||||
/**
|
||||
* The hook fired during listening the request so a module can remove also the cache or other logic.
|
||||
*/
|
||||
do_action( 'woocommerce_paypal_payments_on_listening_request' );
|
||||
|
||||
$ppcp_reference_transaction_enabled = get_transient( 'ppcp_reference_transaction_enabled' ) ?? '';
|
||||
if ( $ppcp_reference_transaction_enabled ) {
|
||||
delete_transient( 'ppcp_reference_transaction_enabled' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue