Skip to content

Commit

Permalink
refactor(router): addressed pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sahkal committed Oct 12, 2023
1 parent edf43f5 commit 1a66e0f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions config/config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -431,3 +431,7 @@ apple_pay_ppc = "APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE" #Payment
apple_pay_ppc_key = "APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE_KEY" #Private key generate by Elliptic-curve prime256v1 curve
apple_pay_merchant_cert = "APPLE_PAY_MERCHNAT_CERTIFICATE" #Merchant Certificate provided by Apple Pay (https://developer.apple.com/) Certificates, Identifiers & Profiles > Apple Pay Merchant Identity Certificate
apple_pay_merchant_cert_key = "APPLE_PAY_MERCHNAT_CERTIFICATE_KEY" #Private key generate by RSA:2048 algorithm


[payment_link]
sdk_url = "http://localhost:9090/dist/HyperLoader.js"
8 changes: 4 additions & 4 deletions crates/api_models/src/payments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2915,18 +2915,18 @@ pub struct PaymentLinkObject {
pub merchant_custom_domain_name: Option<String>,
}

#[derive(Default, Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
#[derive(Default, Debug, serde::Deserialize, Clone, ToSchema)]
pub struct RetrievePaymentLinkRequest {
pub client_secret: Option<String>,
}

#[derive(Clone, Debug, serde::Serialize, PartialEq, serde::Deserialize, ToSchema)]
#[derive(Clone, Debug, serde::Serialize, PartialEq, ToSchema)]
pub struct PaymentLinkResponse {
pub link: String,
pub payment_link_id: String,
}

#[derive(Clone, Debug, serde::Serialize, serde::Deserialize, ToSchema)]
#[derive(Clone, Debug, serde::Serialize, ToSchema)]
pub struct RetrievePaymentLinkResponse {
pub payment_link_id: String,
pub payment_id: String,
Expand All @@ -2943,7 +2943,7 @@ pub struct RetrievePaymentLinkResponse {
pub link_expiry: Option<PrimitiveDateTime>,
}

#[derive(Clone, Debug, serde::Serialize, serde::Deserialize, ToSchema)]
#[derive(Clone, Debug, serde::Deserialize, ToSchema)]
pub struct PaymentLinkInitiateRequest {
pub merchant_id: String,
pub payment_id: String,
Expand Down
2 changes: 1 addition & 1 deletion crates/router/src/core/payment_link/payment_link.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{{ hyperloader_sdk_link }}
<style>
:root {
--primary-color: #ffad05;
--primary-color: #26c5a0;
--primary-accent-color: #f8e5a0;
--secondary-color: #1c7ed9;
}
Expand Down

0 comments on commit 1a66e0f

Please sign in to comment.