最近搜索
没有最近搜索

Ricardo Pinto
已加入2021年4月14日
·
最后活动2025年1月09日
关注
2
关注者
6
活动总数
948
投票
9
订阅
812
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Ricardo Pinto
Ricardo Pinto 创建了一篇文章,
概览
如果您使用帮助中心 模板化 API v1、v2 或 v3,并在 支持请求表格中收集信用卡号码,则您使用的是标准信用卡字段。此字段的默认行为是要求用户输入完整的信用卡号,然后在提交表格之前将该卡号标记为密文,即将除最后四位以外的所有数字替换为“X”。此字段行为与将于 2025 年 3 月 31 日生效的新 PCI DSS 要求不兼容。
如果可以的话, 将您的主题升级到模板化 API v4,它使用 new_request_form 助手 ,而不是旧版的 request_form 助手。如果您无法升级到模板化 API v4,可以在 v1、v2 或 v3 主题中编写自定义 JavaScript 代码,以便用新的输入字段替换默认的信用卡字段,后者仅要求您输入额度的后四位数。卡。
您还需要在 管理中心 编辑自定义信用卡字段的 标签或描述 ,以指示用户仅输入其信用卡的最后四位数。
自定义信用卡字段的实施示例
旧版 request_form 助手中呈现的默认信用卡字段包括:
- 隐藏的输入元素,用于将值附加到表格中
- 对用户可见的文本输入元素。当用户模糊元素或提交表格时,输入的值将被标记为密文。已标记为密文的值会反映在隐藏的输入中。
您可以编写自定义 JavaScript 代码,将文本输入元素替换为新的输入元素,该元素:
- 仅询问信用卡号的最后四位数,并且
- 每次隐藏输入值更改时,更新其值,其中包含 9 到 15 个“X”,后跟最后四位数
这样,用户只需输入最后四位数,从而将从 PCI DSS 范围中删除表格。随表格提交的值仍是已标记为密文的信用卡号。
当提交表格后出现错误或创建跟进工单时呈现表格时,输入将包含之前输入的值,并已标记为密文。例如,如果用户在信用卡字段中输入了一个值,并提交了出错的表格,则页面将重新加载,表格将显示默认的信用卡字段,其值例如 XXXXXXXXX1234
更新。您的自定义代码必须提取最后四位数,并将其设置为新元素的值。
// 4 digits credit card field
document.addEventListener("DOMContentLoaded", function () {
// Select all text inputs with the class 'partialcreditcardinputfield'
const inputFields =
document.querySelectorAll(".partialcreditcardinputfield");
inputFields.forEach((originalInput) => {
// Locate the adjacent hidden input
const parentElement = originalInput.parentElement;
const hiddenInput = parentElement.querySelector(
".partialcreditcardhiddenfield"
);
if (hiddenInput) {
// Get the relevant attributes from the original input
const id = originalInput.id;
const className = originalInput.className;
const ariaRequired = originalInput.getAttribute("aria-required");
const ariaLabelledby = originalInput.getAttribute("aria-labelledby");
// Create the new input element
const newInput = document.createElement("input");
newInput.type = "text";
newInput.id = id;
newInput.className = className;
newInput.setAttribute("aria-required", ariaRequired);
newInput.setAttribute("aria-labelledby", ariaLabelledby);
newInput.setAttribute("maxlength", "4");
newInput.value = originalInput.value
? originalInput.value.replaceAll("X", "")
: "";
// Add the input event listener to update the hidden input
newInput.addEventListener("input", function (event) {
const value = event.target.value;
hiddenInput.value = `XXXXXXXXX${value}`;
});
// Replace the original input with the new one
parentElement.replaceChild(newInput, originalInput);
}
});
});
翻译免责声明:本文章使用自动翻译软件翻译,以便您了解基本内容。 我们已采取合理措施提供准确翻译,但不保证翻译准确性
如对翻译准确性有任何疑问,请以文章的英语版本为准。
已于 2024年11月13日 编辑 · Ricardo Pinto
0
关注者
1
投票
0
评论
Ricardo Pinto 进行了评论,
Hello Thomas D'Hoe . It was indeed agents…or users of the ticketing system more broadly. Thanks for the flag.
查看评论 · 已于 2024年9月27日 发布 · Ricardo Pinto
0
关注者
0
投票
0
评论
Ricardo Pinto 进行了评论,
Hello Sally Anne Dishong . That looks like a little glitch that can be solved by clearing the cache of your browser. Thank you.
查看评论 · 已于 2024年4月29日 发布 · Ricardo Pinto
0
关注者
0
投票
0
评论
Ricardo Pinto 进行了评论,
Thanks for your feedback Matt Farrington Smith . We are following the design of our zendesk.com pages that has been live for a while now. But I will share your feedback with the designers.
Anastasia Kachanova, I see. Those issues are currently being worked on. I will share your report with our team. Thanks for sharing.
查看评论 · 已于 2024年4月18日 发布 · Ricardo Pinto
0
关注者
1
投票
0
评论
Ricardo Pinto 进行了评论,
Hello everyone. Apologies for the delay addressing your comment.
The text box for entering comments on tickets is very small. You can only fit 3 lines of text before you need to start scrolling. This does not seem to be by design, as the text box for community posts resizes as I type. Can we fix the comment box for ticket comments?
There were some recent changes in the My activities page to fix some issues. I am though going to connect with the team regarding the resizing issue. Thanks for the feedback.
Pagination in comments can make it hard to find responses to questions other community members have added. Some of the font sizing is very extreme. Article titles, for example, often take up the entire screen on a standard monitor, but then the text of the article's content is smaller (I think?) than it used to be, making it harder to read without zooming.
Those issues are being addressed as we speak!
PS: Besides not being able to add someone in CC for a Zendesk ticket I also can't solve a ticket anymore now.
This is fixed. Thanks.
I can't see attachments I've added to requests. The first time this happened, I thought it failed so I uploaded again, and the support agent had to tell me that they had all the files.
I'd like to be able to CC folks from my team on the requests page.
Text areas should auto expand or be user expandable on the requests page. The comment box here is expanding as I type, but the requests page doesn't do that.
The font size gap needs to be reeled in. I need to zoom my browser to read comments, but that blows up all the big text too. Changing the comment line height to 1.5 and dropping header font size down to 44px does a world of wonders to even things out.
Those should now be fixed.
On the right sidebar on the request page, under Status there is an Id that doesn't seem to reference one of my orgs, and the Organization name just shows as “Org name”. Looks like some placeholder values might have snuck in.
Great catch. I will bring it over to the Engineers. Thanks.
Comments should show more per page. I got several pages into this and when clicking the vote button, I was prompted to login and lost my place the comment flow and was sent back to page 1.
Hmm…this one is tricky. Let me pass the feedback to the team as well.
Overall things are looking good for what feels like a pretty large update.
Thank you!
查看评论 · 已于 2024年4月12日 编辑 · Ricardo Pinto
0
关注者
1
投票
0
评论
Ricardo Pinto 进行了评论,
Hello everyone. Apologies for the delay addressing all your concerns. We are working hard on fixing some of these issues and in fact some of them no longer happen.
Atanas Tomov Under My activities > Requests, you will only see tickets you have requested with the Zendesk Customer Support team. You can't find any information about Community contributions because that is under My activities > Contributions.

Also, at the time of this comment, I also noticed that you cannot @ mention someone. One more thing I noticed today is that the edit button in Product Feedback posts is not working. It loads for a second and then nothing happens.
Those two should be fixed. But let me know if you see any issue still :).
查看评论 · 已于 2024年4月12日 发布 · Ricardo Pinto
0
关注者
0
投票
0
评论
Ricardo Pinto 进行了评论,
Hello, Jill Bragg,
That is indeed not related with the redesign but I have asked the writer to change the link.
Sebastian, we are currently working on fixing the issues in the Requests page.
Richard J, issues with the comment counter are also being worked on. The search results
Thank you all!
查看评论 · 已于 2024年3月29日 发布 · Ricardo Pinto
0
关注者
0
投票
0
评论
Ricardo Pinto 进行了评论,
Hello, Ahmed Zaid,
Thanks for taking the time to report these issues.
I am getting much worse search results. There are articles that I know well and I try searching for them but I end up getting irrelevant results.
We are still working on improving the search experience. Our team has just made some changes to the way relevance was set up in the Help Center and the results should now be more relevant.
The comment box was available for me when I was signed out. I forgot to sign in and wrote a comment and kept clicking Post unsuccessfully with no feedback to why this is failing or redirecting me to sign in.
Sorry to hear that. I have logged that issue as something for our engineers to fix.
Sign in does not return to last page. It always returns to /hc/en-us
I am not sure I understood that one. Would you be able to add a little bit more of detail please? Thank you!
查看评论 · 已于 2024年3月28日 发布 · Ricardo Pinto
0
关注者
0
投票
0
评论
Ricardo Pinto 进行了评论,
Hello, Molly Katolas and Atanas Tomov. Thanks for raising those issues.
Regarding not being able to access your requests, that issue should be fixed now. Do you want to try again after clearing the cache of your browser? :)
@Atanas, perhaps you could try “My profile” page. There is an Activity overview that should show you everything in the same place.
查看评论 · 已于 2024年3月28日 发布 · Ricardo Pinto
0
关注者
0
投票
0
评论