Yoki Finance
  • Introduction
    • What is Yoki Finance?
    • Our Values
    • $YOKI token
  • Subscription payments
    • Subscription payments gateway
    • For merchant
      • Glossary
      • How to create the subscription plan
      • Payment plan page
      • Money flows and settlement
      • Get subscription statuses
      • API integration
        • Introduction
        • Steps
        • Localhost environment
        • API brief overview
        • Sending to Telegram group
      • Data export
    • Chains and Tokens
  • Dollar-Cost-Averaging
    • Dollar-Cost-Averaging app
    • Overview
    • Architecture
    • Creating the first subscription
    • Chains and Tokens
    • Analytics
    • Fees
    • Integration
  • Social Media
    • Website
    • Twitter
    • Medium
    • Discord
Powered by GitBook
On this page
  1. Subscription payments
  2. For merchant
  3. API integration

Localhost environment

PreviousStepsNextAPI brief overview

Last updated 1 year ago

This page describes how to handle Yoki webhooks on localhost so that merchant can debug subscription statuses coming from Yoki.

Short answer

Use to forward Yoki webhooks to localhost. In the Webhookrelay's dashboard go to Request Forwarding -> Buckets -> Forward To and choose Internal Destination. The flow is pretty well explained up there.

Long answer

  1. Run webhook handler on localhost. Let's say, you receive requests on http://localhost:8088

  2. Register on

  3. Go to webhookrelay's dashboard

  4. Select Request Forwarding -> Buckets -> Forward To and choose Internal Destination.

  5. Specify local URL to forward requests to (in this case http://localhost:8088):

  6. Install the agent on local machine (commands for operating systems are given), press "Generate Auth Token", then run authenticate command. After completed, run forwarding command as per screenshot below.

  7. After it is done, you'll see "Agent is connected and subscribed!". Press "Start forwarding".

  8. You're done! You can now see the public webhook handler URL that you can give to Yoki to test integration locally. All requests will be forwarded to localhost:8088 (or any other URL).

https://webhookrelay.com/
https://webhookrelay.com/