35 lines
846 B
Markdown
35 lines
846 B
Markdown
# Bazzar
|
|
|
|
### Order life cycle
|
|
|
|
<img src="./assets/order-lifecycle.svg" alt="order lifecycle">
|
|
|
|
## Adapters
|
|
|
|
### API
|
|
|
|
|
|
|
|
#### Building adapters
|
|
|
|
Repository contains script which will build all adapters and copy wasm files to `./adapters` directory
|
|
|
|
This script will treat all crates which starts with `payment_adapter_` as a payment adapter
|
|
|
|
```bash
|
|
mkdir -p adapters
|
|
./scripts/build-adapters
|
|
```
|
|
|
|
##### `init`
|
|
|
|
| Argument | Result |
|
|
|-----------------------------------------|--------------------------|
|
|
| payment_argument::PaymentProviderConfig | payment_argument::Status |
|
|
|
|
* `create_payment`
|
|
|
|
| Argument | Result |
|
|
|--------------------------------|-------------------------------|
|
|
| payment_adapter::CreatePayment | payment_adapter::OrderCreated |
|