Skip to content

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

Open

Description

@ogheneovo12

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.

Activity

  1. Nelwhix commented on Jul 8, 2023

    @Nelwhix
    Contributor

    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?

  2. ogheneovo12 commented on Aug 6, 2023

    @ogheneovo12
    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.

  3. ogheneovo12 commented on Aug 6, 2023

    @ogheneovo12
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions