Skip to content

Commit

Permalink
Use zarinpal
Browse files Browse the repository at this point in the history
  • Loading branch information
HirbodBehnam committed Jan 12, 2024
1 parent 060f08d commit a42b920
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions payment/cmd/payment/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,14 @@ import (
"wss-payment/api"
db "wss-payment/internal/database"
"wss-payment/pkg/idpay"
"wss-payment/pkg/payment"
"wss-payment/pkg/zarinpal"
)

func main() {
// Create the data needed
endpointApi := new(api.API)
endpointApi.Database = setupDatabase()
endpointApi.PaymentService = payment.ServiceMock{ // TODO: remove
FailCreation: false,
FailVerification: false,
PaymentVerificationOk: false,
}
endpointApi.PaymentService = getZarinpal()
defer endpointApi.Database.Close()
// Setup endpoints
r := gin.New()
Expand Down

0 comments on commit a42b920

Please # to comment.