Dear Mr.Clayton,
We have tried our best effort in the last few days, including a bit of code editing but without succeed. Allow us to come back to you to seek for further advise with thanks.
A) ApplePay shipping requirement remain in force. our version is 3.2.0
we see the default value should already be $data[‘needs_shipping’] = false, but the ApplePay popup remains persistent to have a shipping address to proceed. Is our interpretation wrong or is it a problem?
B) about the coding, we tried putting the below code in the functions.php of the theme in use
// in the final class OCEANWP_Theme_Class --> __contruct
add_filter('wc_stripe_output_display_items', 'maybe_show_shipping_address_in_wallet', 10, 3);
// in the final class OCEANWP_Theme_Class
public static function maybe_show_shipping_address_in_wallet($data, $page, $gateway){
$data['needs_shipping'] = false;
return $data;
}
but we are getting a error “null is not an object (evaluating ‘this.get_gateway_data().currency’). can you advise what the problem would be in our code and how we can correct it?
Thank you very much Clayton.