-
Notifications
You must be signed in to change notification settings - Fork 42
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
Invalid parameter format for ACH tokenize #110
Comments
We are seeing this same error in both our production and development environments, any updates? |
It looks like the issue is happening in the tokenize method on ach.tsx:64 try {
const result = await ach.tokenize({
accountHolderName,
});
if (result.status === 'OK') {
const tokenizedResult = await cardTokenizeResponseReceived(result);
return tokenizedResult;
}
let message = `Tokenization failed with status: ${result.status}`;
if (result?.errors) {
message += ` and errors: ${JSON.stringify(result?.errors)}`;
throw new Error(message);
}
console.warn(message);
} catch (error) {
console.error(error);
} finally {
setIsSubmitting(false);
} |
From the square docs:
Seems like this previously-optional prop of the PaymentForm component of this library is now required:
And this library should take the amount, currency code, and intent vals from this prop and pass them to ACH.tokenize |
Describe the bug
This package has worked well with my Square sandbox account. After I switched to the production environment, I am unable to make ACH payments.
Your Example Website or App
https://stackblitz.com/edit/vitejs-vite-bsyrq3?file=src%2FApp.jsx
Steps to Reproduce the Bug or Issue
Expected behavior
I expect the ACH payment button to open the payment modal when clicked. Instead what I'm seeing is the following error:
Screenshots or Videos
Platform
Additional context
The same code works fine when I replace the application ID and the locationId with the sandbox values.
The text was updated successfully, but these errors were encountered: