Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
darshil-vt opened this issue May 11, 2023 · 4 comments

Comments

@darshil-vt
Copy link

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
Copy link

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

@darshil-vt
Copy link
Author

@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
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants