@oneblink/apps-react
    Preparing search index...

    Function handlePaymentQuerystring

    • Pass in query string parameters after a redirect back to your app after a payment is processed. This function will handle all payment submission events supported by OneBlink. Will return a Transaction and the submission result that was returned from handlePaymentSubmissionEvent() before redirecting to payment.hostedFormUrl.

      import queryString from 'query-string'

      const query = queryString.parse(window.location.search)
      const { transaction, submissionResult } =
      await paymentService.handlePaymentQuerystring(query)

      Parameters

      • query: Record<string, unknown>

      Returns Promise<HandlePaymentResult>