Skip to content

isobar-nz/silverstripe-flow-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flow API Integration

Installation

Configuration

In your .env file:

FLOW_API_USERNAME="<username>"
FLOW_API_PASSWORD="<password>"
FLOW_PRODUCTS_URL="http://<url>:<port>/api/products"
FLOW_STOCK_URL="http://<url>:<port>/api/stockonhand"
FLOW_PRICING_URL="http://<url>:<port>/api/customerprice"
FLOW_ORDERS_URL="http://<url>:<port>/api/orders"

Enable logging

---
Name: flowlogging
Before:
  - '#logging'
  - '#sentrylogging'
---
SilverStripe\Core\Injector\Injector:
  Psr\Log\LoggerInterface:
    calls:
      FlowErrorHandler: [ pushHandler, [ '%$FlowErrorHandler' ] ]
  FlowErrorHandler:
    class: Isobar\Flow\Handler\FlowErrorHandler
    constructor:
      - [email protected] #to
      - There was an error on your test site #subject
      - [email protected] #from
      - error
    properties:
      ContentType: text/html
      Formatter: %$SilverStripe\Logging\DetailedErrorFormatter

About

Integration between SwipeStripe and the Flow API

Resources

License

Stars

Watchers

Forks

Packages

No packages published