Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
[CKO] - Add tokenizer to the mix (#271)
Browse files Browse the repository at this point in the history
* Add tokenizer to the mix

* clean up

* Fix ci issue
  • Loading branch information
ashish-bolt committed Feb 13, 2024
1 parent 55667f1 commit 2010968
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions gateways/checkoutcom/checkoutcom.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,20 @@ func NewWithHTTPClient(env common.Environment, apiKey string, processingChannelI
}

func (client *CheckoutComClient) generateCheckoutDCClient() (*nas.Client, error) {
api, err := checkout.Builder().
builder := checkout.Builder().
StaticKeys().
WithEnvironment(client.env).
WithSecretKey(client.apiKey).
Build()
WithSecretKey(client.apiKey)

if client.httpClient != nil {
builder.WithHttpClient(client.httpClient)
}

api, err := builder.Build()
if err != nil {
return nil, err
}

return api.Payments, nil
}

Expand Down

0 comments on commit 2010968

Please sign in to comment.