The programmable card docs are missing the afterDecline function #14
devinpearson
started this conversation in
Bugs
Replies: 2 comments
-
Looking again it is mentioned. It can be explained a little further and shown in the examples. None of the functions are required to be present in the code the user submits. If they only want to act on card declines, they can supply only the afterDecline. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I agree that the If you don't supply it, any decline generates an error message: {
"executionId": "2EE2F5F0-7090-4B8C-",
"rootCodeFunctionId": "45544A34-3805-",
"sandbox": false,
"type": "after_decline",
"authorizationApproved": null,
"logs": [
{
"createdAt": "2024-05-01T10:52:58.764Z",
"level": "error",
"content": "Error: afterDecline is not defined"
}
],
"smsCount": 0,
"emailCount": 0,
"pushNotificationCount": 0,
"createdAt": "2024-05-01T10:52:58.285Z",
"startedAt": "2024-05-01T10:52:58.285Z",
"completedAt": "2024-05-01T10:52:58.901Z",
"updatedAt": "2024-05-01T10:52:58.285Z"
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you navigate to the Programmable card docs, you will only see the beforeTransaction and the afterTransaction, but there is no mention of the afterDecline.
afterDecline should be added to the docs and the examples.
Beta Was this translation helpful? Give feedback.
All reactions