-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ The library supports all webhooks under the following model directories: | |
You can use go modules to add our library to your project | ||
|
||
```bash | ||
go get github.com/adyen/adyen-go-api-library/v12@v13.0.0 | ||
go get github.com/adyen/adyen-go-api-library/v13@v13.0.0 | ||
``` | ||
|
||
## Usage examples | ||
|
@@ -79,9 +79,9 @@ go get github.com/adyen/adyen-go-api-library/[email protected] | |
```go | ||
import ( | ||
"context" | ||
"github.com/adyen/adyen-go-api-library/v12/src/checkout" | ||
"github.com/adyen/adyen-go-api-library/v12/src/common" | ||
"github.com/adyen/adyen-go-api-library/v12/src/adyen" | ||
"github.com/adyen/adyen-go-api-library/v13/src/checkout" | ||
"github.com/adyen/adyen-go-api-library/v13/src/common" | ||
"github.com/adyen/adyen-go-api-library/v13/src/adyen" | ||
) | ||
|
||
client := adyen.NewClient(&common.Config{ | ||
|
@@ -101,9 +101,9 @@ res, httpRes, err := service.PaymentsApi.PaymentMethods(context.Background(), re | |
|
||
```go | ||
import ( | ||
"github.com/adyen/adyen-go-api-library/v12/src/checkout" | ||
"github.com/adyen/adyen-go-api-library/v12/src/common" | ||
"github.com/adyen/adyen-go-api-library/v12/src/adyen" | ||
"github.com/adyen/adyen-go-api-library/v13/src/checkout" | ||
"github.com/adyen/adyen-go-api-library/v13/src/common" | ||
"github.com/adyen/adyen-go-api-library/v13/src/adyen" | ||
) | ||
|
||
client := adyen.NewClient(&common.Config{ | ||
|
@@ -124,9 +124,9 @@ res, httpRes, err := service.PaymentsApi.PaymentMethods(context.Background(), re | |
|
||
```go | ||
import ( | ||
"github.com/adyen/adyen-go-api-library/v12/src/recurring" | ||
"github.com/adyen/adyen-go-api-library/v12/src/common" | ||
"github.com/adyen/adyen-go-api-library/v12/src/adyen" | ||
"github.com/adyen/adyen-go-api-library/v13/src/recurring" | ||
"github.com/adyen/adyen-go-api-library/v13/src/common" | ||
"github.com/adyen/adyen-go-api-library/v13/src/adyen" | ||
) | ||
|
||
client := adyen.NewClient(&common.Config{ | ||
|
@@ -154,7 +154,7 @@ In some setups you might need to unmarshal JSON strings to request objects. For | |
```go | ||
import ( | ||
"encoding/json" | ||
"github.com/adyen/adyen-go-api-library/v12/src/checkout" | ||
"github.com/adyen/adyen-go-api-library/v13/src/checkout" | ||
) | ||
paymentRequest := checkout.PaymentRequest{} | ||
error := json.Unmarshal([]byte("YOUR_JSON_STRING"), &paymentRequest) | ||
|
@@ -165,7 +165,7 @@ error := json.Unmarshal([]byte("YOUR_JSON_STRING"), &paymentRequest) | |
|
||
```go | ||
import ( | ||
"github.com/adyen/adyen-go-api-library/v12/src/webhook" | ||
"github.com/adyen/adyen-go-api-library/v13/src/webhook" | ||
) | ||
|
||
msg, err := webhook.HandleRequest(`{"live": "false", "notificationItems": []}`) | ||
|
@@ -175,9 +175,9 @@ msg, err := webhook.HandleRequest(`{"live": "false", "notificationItems": []}`) | |
|
||
```go | ||
import ( | ||
"github.com/adyen/adyen-go-api-library/v12/src/common" | ||
"github.com/adyen/adyen-go-api-library/v12/src/checkout" | ||
"github.com/adyen/adyen-go-api-library/v12/src/adyen" | ||
"github.com/adyen/adyen-go-api-library/v13/src/common" | ||
"github.com/adyen/adyen-go-api-library/v13/src/checkout" | ||
"github.com/adyen/adyen-go-api-library/v13/src/adyen" | ||
) | ||
|
||
client := adyen.NewClient(&common.Config{ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module github.com/adyen/adyen-go-api-library/v12 | ||
module github.com/adyen/adyen-go-api-library/v13 | ||
|
||
go 1.13 | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.