Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add image and update text
  • Loading branch information
Uchencho authored Sep 24, 2023
1 parent 68742ae commit 45700b2
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

[Pawapay](https://pawapay.io/) client application written in Go


![alt text](https://global-uploads.webflow.com/62824591015aa314fd308df1/6411b26596e3de3f52551c00_Logopawapay-p-500.png)



## Usage

### Install Package
Expand Down Expand Up @@ -30,7 +35,8 @@ import (

func main() {
cfg := pawapay.GetConfigFromEnvVars()
cfg.AllowRequestLogging() // only for debugging, would not advise this for production. Also not necessary, read on for why
cfg.AllowRequestLogging() // only for debugging, would not advise this for production.
// Also not absolutely necessary because we store API annotations in the response returned

/*
You can also explicitly declare the config
Expand All @@ -53,8 +59,8 @@ func main() {
log.Fatal(err)
}

// each mapping, think country, have a number of correspondents, pick the one you are trying to send money to
// ideally you will take this as an input and map to the correspondent of your choice
// each mapping, think country, have a number of correspondents, pick the one you are trying to send money to.
// Ideally you will take this as input and map to the correspondent of your choice
correspondent := allCorrespondentMappings[0].Correspondents[0]
req := pawapay.PayoutRequest{
Amount: amt,
Expand All @@ -81,5 +87,7 @@ func main() {
```

> **NOTE**
> You also have access to deposit and refund functionalities
> Check the `client` directory to see a sample implementation and pawapay_test.go file to see sample tests

0 comments on commit 45700b2

Please sign in to comment.