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

task: add support for buyer option #41

Merged
merged 12 commits into from
Sep 3, 2024

Conversation

luca-gr4vy
Copy link
Collaborator

@luca-gr4vy luca-gr4vy commented Aug 28, 2024

Description: Adds support for the buyer option when used in React Native. In the native code, instead of getting each property of the object and pass it to the structs/classes, we pass the whole ReadableMap directly which is decoded as the desired target Gr4vyBuyer. We use JSONSerialization in Swift and jackson (added previously) for Java.

We could potentially refactor other objects (like statementDescriptor) to use the same in the future to clean up the code. Or decide to go for json strings like we did for connectionOptions (which will require changes in the other sdks first).

Tested manually with both simulators and for different scenarios (no buyer, no `billingDetails, etc)

Ticket: https://gr4vy.atlassian.net/browse/TA-8177

@luca-gr4vy luca-gr4vy added minor Increment the minor version when merged release Create a release when this pr is merged labels Aug 28, 2024
ios/EmbedReactNative.swift Outdated Show resolved Hide resolved
@luca-gr4vy luca-gr4vy merged commit ad67034 into main Sep 3, 2024
3 checks passed
@luca-gr4vy luca-gr4vy deleted the task/TA-8177-add-support-for-buyer-option branch September 3, 2024 07:24
@gr4vy-code
Copy link
Contributor

🚀 PR was released in v1.6.0 🚀

@gr4vy-code gr4vy-code added the released This issue/pull request has been released. label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged release Create a release when this pr is merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants