Skip to content

Fix/create add card form signature - #57

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

Fix/create add card form signature#57
OttiaDevsPT wants to merge 3 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.

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