mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix wrong cache key product assigment
This commit is contained in:
parent
af25aeead0
commit
24280dda3a
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ class OnboardingRenderer {
|
|||
->data();
|
||||
|
||||
$environment = $is_production ? 'production' : 'sandbox';
|
||||
$product = isset( $data['products']['PPCP'] ) ? 'ppcp' : 'express-checkout';
|
||||
$product = 'PPCP' === $data['products'][0] ? 'ppcp' : 'express_checkout';
|
||||
if ( $this->cache->has( $environment . '-' . $product ) ) {
|
||||
return $this->cache->get( $environment . '-' . $product );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue