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

Destination ID #17

Open
genelynancheta opened this issue May 5, 2021 · 2 comments
Open

Destination ID #17

genelynancheta opened this issue May 5, 2021 · 2 comments

Comments

@genelynancheta
Copy link

Is the “destinations” supported and something where we can pass the destination id? We are transferring the amount to our providers and have this working on Web SDK. We have initially implemented using React Native SDK but it looks like it’s not doing the transfer process.

"destinations": {
"destination": [
{
"id": "480593",
"amount": 2,
"currency": "KWD"
},
{
"id": "486374",
"amount": 3,
"currency": "KWD"
}
]
},

@kareemTap
Copy link
Contributor

@genelynancheta The correct format should be as the following:

destinations: {
    "destinations": {
        "amount": 20.2,
        "currency": "BHD",
        "count": 1,
        "destination": [
            {
                "id": "id_value",
                "amount": 2.2,
                "currency": "BHD",
                "description": "description",
                "reference": "reference"
            }
        ]
    }
},

@genelynancheta
Copy link
Author

Thanks for your response. I did it as mentioned and though the transaction shows on our Statement, it doesn't seem to be transferring to the destination. Attached is how this has been coded on our app. Am I missing something here? Or does this destination format something that is introduced in later versions?

react: 16.13.1
react-native: 0.63.3
@tap-payments/gosell-sdk-react-native: 1.0.4

tap_card

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

2 participants