diff --git a/pkg/repository/instrument.go b/pkg/repository/instrument.go index 3b22176a..6a816bc6 100644 --- a/pkg/repository/instrument.go +++ b/pkg/repository/instrument.go @@ -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) } diff --git a/pkg/service/checkout.go b/pkg/service/checkout.go index a1aa7e38..24cf9834 100644 --- a/pkg/service/checkout.go +++ b/pkg/service/checkout.go @@ -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()