Skip to content

Commit

Permalink
added readme
Browse files Browse the repository at this point in the history
  • Loading branch information
themgmd committed Jul 3, 2023
1 parent f1d0cfd commit a8e7bcd
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Cloudpayments SDK

## Installation

```sh
go get -u github.com/onemgvv/cloudpayments
```

## Usage

```go
sdk := cloudpayments.New("secret-from-lk", "your-public-id")

params := cloudpayments.CryptoPayRequest{
Amount: 500.3,
Currency: cloudpayments.RUB,
IpAddress: "127.0.0.1",
CardCryptogramPacket: "eyJUeXBlIjoiQ2xvdWRDYXJkIiwi...",
Name: "Michael",
PaymentUrl: "https://my-site.com/payment/cb",
InvoiceId: "invoice12-333",
CultureName: "ru-RU",
AccountId: "10",
Email: "[email protected]",
}

resp, err := sdk.PayByCryptogram(params)
if err != nil {
// handle error
}

// use response
```

0 comments on commit a8e7bcd

Please sign in to comment.