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

Adding var for response as dictionary #35

Open
faizbaraja opened this issue Apr 27, 2021 · 0 comments
Open

Adding var for response as dictionary #35

faizbaraja opened this issue Apr 27, 2021 · 0 comments

Comments

@faizbaraja
Copy link

Hi,

I am using xendit sdk for our app payment gateway.

We need to send the original response to our Backend for log. Seems i don't find it in the sdk. So i tried to add it by my self.

this is what i did..

open class XENDITCCTOKEN, XenditAuthenticatedToken and XenditAuthentication
create var to store response as dictionary open var allResponseFields: [String : Any]?

assign the the value for the var "allResponseFields" in each constructor in the class

XENDITCCTOKEN

convenience init?(response: [String : Any])
self.allResponseFields = response

convenience init?(authenticatedToken: XenditAuthenticatedToken)
self.allResponseFields = authenticatedToken.allResponseFields

convenience init?(tokenId: String, authentication: XenditAuthentication)
self.allResponseFields = authentication.allResponseFields

convenience init(token: XenditCCToken, should3DS: Bool?)
self.allResponseFields = token.allResponseFields


XenditAuthenticatedToken

convenience init?(response: [String : Any])
self.allResponseFields = response


XenditAuthentication

convenience init?(response: [String : Any])
self.allResponseFields = response

can you include the dictionary value for the response in your sdk ?

thank you

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

No branches or pull requests

1 participant