braintree / braintree_node

Braintree Node.js library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
334 stars 104 forks source link

Cannot use "usBankAccountVerificationMethod" method in options field while using PaymentMethod for ACH Direct Debit #223

Closed darshil-vt closed 1 year ago

darshil-vt commented 1 year ago

gateway.paymentMethod.create({ customerId: "131866", paymentMethodNonce: nonceFromTheClient, options: { usBankAccountVerificationMethod: braintree.UsBankAccountVerification.VerificationMethod.NetworkCheck // or MicroTransfers or IndependentCheck } Screenshot 2023-05-10 172657

Documentation is shows that paymentMethod can use this method but npm package has no method specified in it and it gives error.

hollabaq86 commented 1 year ago

@darshil-vt what's the exact error message you're receiving?

darshil-vt commented 1 year ago

@hollabaq86 Thank you for replying,

I am trying to integrate the ACH Direct Debit payment system in our NodeJS project and We have to implement it in a live website on customer demand. I was referring this link of Braintree's developer site: https://developer.paypal.com/braintree/docs/guides/ach/server-side and shows me that payment method's create function has options field and it can use "usBankAccountVerificationMethod" but when i was try to use it in NodeJS it gives me error and i was using npm's package braintree, i checked that package's documentation but it also didn't has "usBankAccountVerificationMethod" method in options field.

hollabaq86 commented 1 year ago

Thanks @darshil-vt, the SDK is taking any parameters specified in your paymentMethod.create() call and sending it to the API to validate. We're only checking for deprecated fields, there's no type checking in this library (yet! see #176).

Are you receiving an error when you attempt a paymentMethod.create() call on your server?

hollabaq86 commented 1 year ago

I'm going to go ahead and close this since I haven't gotten any updates, but I believe the root is a third party types library is missing these parameters.