Skip to content

Commit

Permalink
(#25): add preauth on payment order
Browse files Browse the repository at this point in the history
  • Loading branch information
ipinak authored and ipinak committed Feb 19, 2023
1 parent 8dcacea commit a418854
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.1
1.0.3
1 change: 1 addition & 0 deletions example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func main() {
fmt.Printf("\nCreate order\n")
req := vivawallet.CheckoutOrder{
Amount: 1000,
PreAuth: true,
}
op, err2 := oauthClient.CreateOrderPayment(req)
if err2 != nil {
Expand Down
1 change: 1 addition & 0 deletions order_payments.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type CheckoutOrder struct {
RequestLang string `json:"requestLang,omitempty"`
} `json:"customer,omitempty"`
PaymentTimeout int `json:"paymentTimeout,omitempty"`
PreAuth bool `json:"preauth,omitempty"`
AllowRecurring bool `json:"allowRecurring,omitempty"`
MaxInstallments int `json:"maxInstallments,omitempty"`
PaymentNotification bool `json:"paymentNotification,omitempty"`
Expand Down

0 comments on commit a418854

Please sign in to comment.