Skip to content

Added last4 for v4 api physcial HCB card activations. #10085

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

scooterthedev
Copy link
Member

@scooterthedev scooterthedev commented Apr 6, 2025

Summary of the problem

This method under the v4 api allowed anyone to activate a physical HCB card without the last 4 digits being submitted. #10075

Describe your changes

  • Adds a check to mandate and verify the last 4 digits of the physical HCB card before activation. This can be called via a PATCH request to /api/v4/cards/:card_id with the Authorization token being your Bearer and the URL parameters being last4: last 4 digits and status: active. Status: frozen does not require last4.

  • Also removed the ability to freeze cancelled cards because the card is frozen FOREVER already ;)

This will affect the HCB mobile app as it will now require the last4 before it can authorize the activation CC: @thedev132

@scooterthedev scooterthedev requested review from a team as code owners April 6, 2025 04:31
@scooterthedev scooterthedev requested a review from sampoder April 7, 2025 16:47
@scooterthedev
Copy link
Member Author

@sampoder quick reminder ;)! I think I fixed your review, but if you could double check, that would also be awesome.

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

Successfully merging this pull request may close these issues.

2 participants