Skip to content

Commit

Permalink
Merge pull request #25 from cashfree/v3.0.6
Browse files Browse the repository at this point in the history
3.0.6
  • Loading branch information
suhas-cashfree authored Dec 14, 2023
2 parents c015138 + 18a3717 commit 8b4f550
Show file tree
Hide file tree
Showing 29 changed files with 146 additions and 340 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Cashfree's PG API Documentation - https://docs.cashfree.com/reference/pg-new-api

Learn and understand payment gateway workflows at Cashfree Payments [here](https://docs.cashfree.com/docs/payment-gateway)

Try out our interactive guides at [Cashfree Dev Studio](https://www.cashfree.com/devstudio) !

## Getting Started

### Installation
Expand All @@ -36,7 +38,26 @@ Generate your API keys (x-client-id , x-client-secret) from [Cashfree Merchant D
### Basic Usage
Create Order
```go
notifyUrlString := "https://www.cashfree.com/devstudio/preview/pg/web/checkout?order_id={order_id}"
notifyUrl := cashfree.NewNullableString(&notifyUrlString)
orderMetaRequest := cashfree.CreateOrderRequestOrderMeta{
NotifyUrl: *notifyUrl,
}

data := cashfree.NewNullableCreateOrderRequestOrderMeta(&orderMetaRequest)

request := cashfree.CreateOrderRequest{
OrderAmount: 1.0,
OrderCurrency: "INR",
CustomerDetails: cashfree.CustomerDetails{
CustomerId: "walterwNrcMi",
CustomerPhone: "9999999999",
},
OrderMeta: *data,
}

version := "2022-09-01"

response, httpResponse, err := cashfree.PGCreateOrder(&version, &request, nil, nil, nil)
if err != nil {
fmt.Println(err.Error())
Expand Down
8 changes: 4 additions & 4 deletions api_eligibility.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api_offers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api_orders.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions api_payment_links.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions api_payments.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_pg_reconciliation.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions api_refunds.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api_settlement_reconciliation.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_settlements.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions api_soft_pos.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions api_token_vault.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions configuration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions docs/ReconEntityDataInner.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Name | Type | Description | Notes
**PaymentTime** | Pointer to **NullableString** | Date and time when the payment was initiated. | [optional]
**PaymentServiceCharge** | Pointer to **NullableFloat32** | Service charge applicable for the payment. | [optional]
**PaymentServiceTax** | Pointer to **NullableFloat32** | Service tax applicable on the payment. | [optional]
**CfPaymentId** | Pointer to **NullableInt32** | Cashfree Payments unique ID to identify a payment. | [optional]
**CfPaymentId** | Pointer to **NullableInt64** | Cashfree Payments unique ID to identify a payment. | [optional]
**CfSettlementId** | Pointer to **NullableInt32** | Unique ID to identify the settlement. | [optional]
**SettlementDate** | Pointer to **NullableString** | Date and time when the settlement was processed. | [optional]
**SettlementUtr** | Pointer to **NullableString** | Unique transaction reference number of the settlement. | [optional]
Expand Down Expand Up @@ -678,20 +678,20 @@ HasPaymentServiceTax returns a boolean if a field has been set.
UnsetPaymentServiceTax ensures that no value is present for PaymentServiceTax, not even an explicit nil
### GetCfPaymentId

`func (o *ReconEntityDataInner) GetCfPaymentId() int32`
`func (o *ReconEntityDataInner) GetCfPaymentId() int64`

GetCfPaymentId returns the CfPaymentId field if non-nil, zero value otherwise.

### GetCfPaymentIdOk

`func (o *ReconEntityDataInner) GetCfPaymentIdOk() (*int32, bool)`
`func (o *ReconEntityDataInner) GetCfPaymentIdOk() (*int64, bool)`

GetCfPaymentIdOk returns a tuple with the CfPaymentId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetCfPaymentId

`func (o *ReconEntityDataInner) SetCfPaymentId(v int32)`
`func (o *ReconEntityDataInner) SetCfPaymentId(v int64)`

SetCfPaymentId sets CfPaymentId field to given value.

Expand Down
Loading

0 comments on commit 8b4f550

Please sign in to comment.