How to set up your Stripe Webhook

How to set up your Stripe Webhook

An Active Stripe account has to be first setup in order to create the webhook within Octiv

1. Copy API Keys from Stripe Account 
  1. Log into Stripe 
  2. Click on "Developers" in the top right corner
  3. Click “API Keys”
  4. Copy each of the “LIVE keys" from your Stripe account into your Octiv account  under their respective fields - This would be;
    - Publishable key
    - Secret Key (click on "reveal live key" to view the key"
  5. Log into your Octiv account and navigate to: Settings > Payment Gateways > Adhoc > Click on View/ Edit below Stripe > Paste the Keys into the respective fields 

 ** note the keys shown below are not valid, please use the correct keys from your own profile

 

2. Create Stripe Webhook End point in Octiv

Log into your Octiv account and navigate to 

Settings > Payment Gateways > Adhoc > Click on View/ Edit below Stripe > Paste the Keys into the respective fields > Submit.

2-4

Save to generate the Webhook Endpoint URL

3-3

3. Add the Octiv Webhook Endpoint URL to your Stripe account and amend the events.

 

  1. Copy the Webhook Endpoint URL from your Octiv account
  2. In your Stripe account, still under "Developers", navigate to the "Webhooks" tab in the left hand menu
  3. Click "Add an end point
  4. Paste the Octiv Webhook Endpoint URL into the text field "Endpoint URL"
  5. Label the description "Octiv Webhook Endpoint"
  6. Under "Select events to listen to", click on "+Select Events" and select the following 10 events;
    - checkout.session.completed
    - customer.created
    - customer.deleted
    - customer.source.created
    - customer.source.deleted
    - charge.failed
    - charge.pending
    - charge.refunded
    - charge.captured
    - charge.succeeded
  7. Once the above events have been added you can now select "Add endpoint" to save your changes.
 

Note: If you have more than one location make sure to allocate the location-specific keys to the correct location