Skip to content

Commit

Permalink
feat: add radom checkout session integration for new orders
Browse files Browse the repository at this point in the history
  • Loading branch information
clD11 committed Aug 6, 2024
1 parent 99480fe commit 5697524
Show file tree
Hide file tree
Showing 14 changed files with 852 additions and 694 deletions.
50 changes: 0 additions & 50 deletions libs/clients/radom/instrumented.go

This file was deleted.

20 changes: 0 additions & 20 deletions libs/clients/radom/mock.go

This file was deleted.

212 changes: 0 additions & 212 deletions libs/clients/radom/radom.go

This file was deleted.

11 changes: 0 additions & 11 deletions libs/context/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,6 @@ const (
// DisableSolanaLinkingCTXKey - this informs if solana linking is enabled
DisableSolanaLinkingCTXKey CTXKey = "disable_solana_linking"

// RadomWebhookSecretCTXKey - the webhook secret key for radom integration
RadomWebhookSecretCTXKey CTXKey = "radom_webhook_secret"
// RadomEnabledCTXKey - this informs if radom is enabled
RadomEnabledCTXKey CTXKey = "radom_enabled"
// RadomSellerAddressCTXKey is the seller address on radom
RadomSellerAddressCTXKey CTXKey = "radom_seller_address"
// RadomServerCTXKey is the server address on radom
RadomServerCTXKey CTXKey = "radom_server"
// RadomSecretCTXKey is the server secret on radom
RadomSecretCTXKey CTXKey = "radom_secret"

// stripe related keys

// StripeEnabledCTXKey - this informs if stripe is enabled
Expand Down
7 changes: 0 additions & 7 deletions services/grant/cmd/grant.go
Original file line number Diff line number Diff line change
Expand Up @@ -630,13 +630,6 @@ func GrantServer(
ctx = context.WithValue(ctx, appctx.StripeWebhookSecretCTXKey, viper.GetString("stripe-webhook-secret"))
ctx = context.WithValue(ctx, appctx.StripeSecretCTXKey, viper.GetString("stripe-secret"))

// Variables for Radom.
ctx = context.WithValue(ctx, appctx.RadomEnabledCTXKey, viper.GetBool("radom-enabled"))
ctx = context.WithValue(ctx, appctx.RadomWebhookSecretCTXKey, viper.GetString("radom-webhook-secret"))
ctx = context.WithValue(ctx, appctx.RadomSecretCTXKey, viper.GetString("radom-secret"))
ctx = context.WithValue(ctx, appctx.RadomServerCTXKey, viper.GetString("radom-server"))
ctx = context.WithValue(ctx, appctx.RadomSellerAddressCTXKey, viper.GetString("radom-seller-address"))

// require country present from uphold txs
ctx = context.WithValue(ctx, appctx.RequireUpholdCountryCTXKey, viper.GetBool("require-uphold-destination-country"))

Expand Down
Loading

0 comments on commit 5697524

Please sign in to comment.