Skip to content

Fix/create add card form signature - #58

Closed
OttiaDevsPT wants to merge 4 commits into
mainfrom
fix/create-add-card-form-signature
Closed

Fix/create add card form signature#58
OttiaDevsPT wants to merge 4 commits into
mainfrom
fix/create-add-card-form-signature

Conversation

@OttiaDevsPT

Copy link
Copy Markdown
Contributor

Related tickets & documents
#55
https://inoob.atlassian.net/browse/PP6-126

What's Changed
Breaking Change: Refactored createAddCardFormRequest to internalize signature calculation and authentication parameters. This aligns the method with the rest of the SDK patterns and simplifies usage for developers. The AddCardFormRequest model no longer requires checkoutAccount, checkoutMethod, checkoutNonce, checkoutTimestamp, checkoutAlgorithm, or signature to be populated manually.

Features
Internalized signature calculation for createAddCardFormRequest (matches createPayment pattern).
Implemented Form Post style authentication (Body Auth) for add-card requests.
Refactoring
Removed manual authentication fields from AddCardFormRequest model.
Automatically injects merchant credentials and generates HMAC signature within the SDK.
Testing
Added unit tests to verify signature generation and payload structure for card form requests.

@OttiaDevsPT
OttiaDevsPT deleted the fix/create-add-card-form-signature branch January 28, 2026 16:21
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.

1 participant