Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Sending data from my app to payment app on same device in IONIC #141

Open
Ruan-Infinity opened this issue Feb 5, 2022 · 1 comment
Open

Comments

@Ruan-Infinity
Copy link

Hi Darryn,

I have an IONIC application that captures data and must send this data to a payment app that is on the same device. I have gone through your documentation and most of the issues that have been posted but I can't get a clear picture of what the code should look like. The 3rd party whose payment app I must send the data to sent me this example for native android.

image
image
image
image

On my app, when the user has entered the data and clicks the 'pay now' button, the data needs to be sent to the payment app (package name: com.ra.pos) and after the payment has been completed by the user it needs to redirect back to my app with a response which I then handle.

Any help will be greatly appreciated.

@Ruan-Infinity Ruan-Infinity changed the title Sending data from my app to payment app on same device Sending data from my app to payment app on same device in IONIC Feb 5, 2022
@darryncampbell
Copy link
Owner

Hi, please take a look at the example for StartActivityForResult, https://github.com/darryncampbell/plugin-intent-api-exerciser/blob/master/www/js/index.js#L162. You might also want to look at how to configure to send an explicit Intent to a specific package, https://github.com/darryncampbell/plugin-intent-api-exerciser/blob/master/www/js/index.js#L239.

For the return data, I suggest just to output the raw JSON of what you get back before you try to parse it: https://github.com/darryncampbell/plugin-intent-api-exerciser/blob/master/www/js/index.js#L316

You are asking very specific questions about your implementation and use case, feel free to reach out to me on email or twitter if you wanted dedicated support to integrate with your 3rd party app.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants