Open Hmariia opened 3 months ago
@Hmariia can you clarify which version you are using? In this issue you specified three different versions. You mention braintree-web version 3.102.0, braintree version 3.23.0, and then point to documentation for version 3.90.0.
Support for updatePayment
was added in version 3.90.0.
Also, are you using an external library for your PayPal checkout Typescript Type definitions? If so, I suspect that the library you are using is a third-party library that we don't officially support and might not be up to date with the latest version of our SDK.
General information
braintree-web version: 3.102.0 braintree version: 3.23.0 Environment: Sandbox Browser and OS: Chrome
Issue description
I'm having an issue to import { PayPalCheckout } from "braintree-web" I get an error that updatePayment method does not exists within PayPalCheckout interface. Based on documentation it should exists with such braintree-web version:
https://braintree.github.io/braintree-web/3.90.0/PayPalCheckout.html#updatePayment Could you please help me to understand why I can't access all the available methods listed in the documentation provided above? If I try to force implementation of functional logic, the updatePayment method is getting successfully called with res: 200. But the
Property 'updatePayment' does not exist on type 'PayPalCheckout'.ts(2339)
type error is always displayed. Here is how PayPalCheckout data type looks based on paypal-checkout.d.ts file: