Skip to content
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

Add support for TWINT params #68

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

visini
Copy link
Contributor

@visini visini commented Apr 8, 2024

To support merchant-initiated payments for the payment method TWINT (TWI), the alias needs to be passed in the request body as body["TWI"]["alias"], as defined by TwintAuthorizeRequest. This PR adds support for that.

Copy link
Contributor

@andyundso andyundso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is okay for now.

Right now params is more or less identical to body, except in body we add autoSettle. This is a good filtering mechanism for now, people are not allowed to pass arbitrary parameters.

It would be cool if params felt more "ruby'ish" (kind of like auto_settle translates to autoSettle), but then we would have to adapt everything within the parameters we already support. which then again brings up the question if we shouldn't just pass params directly instead of creating this body hash.

@andyundso andyundso merged commit b61ead5 into simplificator:master Apr 11, 2024
19 checks passed
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