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

pass in access code to either Popup or Button to retrieves the transaction details, #85

Open
ogheneovo12 opened this issue Jul 7, 2023 · 3 comments

Comments

@ogheneovo12
Copy link

I know the mobile SDK already has the feature, is there a way to replicate on the web,
i want to be able to initialize a transaction at the backend, retrieve the access code from the initialized transaction,
return the access code to the client where the client can then pass it to either the popup or the paystack button, and the transaction details associated with the access code will be automatically fetched for the popup.

@Nelwhix
Copy link
Contributor

Nelwhix commented Jul 8, 2023

Can you send a link to the mobile SDK. because to fetch transaction details, you need the transaction's id not access code link. Also what are the possible use cases for this feature, If a transaction has been initialized why do we still need to see it in the client?

@ogheneovo12
Copy link
Author

Similar to the way one of stripe flow works:- create a transaction session at the backend, with all the accurate information (user info, all necessary price calculation), this is done on the server for reliability.. return the session id and a checkout url, so on the web, pass the session id to the payment element (in Paystack React Popup Element), and information associated with that sessionId (transactionId), is populated on the popup, so i don't need to initialize the transaction on the client anymore.

@ogheneovo12
Copy link
Author

Can you send a link to the mobile SDK. because to fetch transaction details, you need the transaction's id not access code link. Also what are the possible use cases for this feature, If a transaction has been initialized why do we still need to see it in the client?

Link to the android sdk
https://github.com/PaystackHQ/paystack-android

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