Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/repository/instrument.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func NewInstrument(db *sqlx.DB) Instrument {
func (i instrument[T]) Create(insert model.Instrument) (model.Instrument, error) {
m := model.Instrument{}
rows, err := i.store.NamedQuery(`
INSERT INTO instrument (type, status, network, public_key, user_id)
VALUES(:type, :status, :network, :public_key, :user_id) RETURNING *`, insert)
INSERT INTO instrument (type, status, network, public_key, user_id, last_4)
VALUES(:type, :status, :network, :public_key, :user_id, :last_4) RETURNING *`, insert)
if err != nil {
return m, common.StringError(err)
}
Expand Down
3 changes: 1 addition & 2 deletions pkg/service/checkout.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ func AuthorizeCharge(amount float64, userWallet string, tokenId string) (auth Au
Customer: &payments.Customer{
Name: userWallet,
},
AuthorizationType: "Estimated",
Capture: &capture,
Capture: &capture,
}

idempotencyKey := checkout.NewIdempotencyKey()
Expand Down